Keyboard Shortcuts in Salesforce

1. Select View Keyboard Shortcuts from help.


2. You can view the shortcuts.


INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST Lead Conversion Salesforce

1. Check whether the pick list field dependency is set.

2. If the object have record types, make sure the record type have the selected pick list value from Lead to Opportunity or Account if the Lead Mapping is set.

3. Check the Record Type selection during lead conversion.


Lightning Sync Status and Use in Salesforce

You can check for 60 minutes and 24 hours usage under Lightning Sync Status.


Create a custom report type with LightningSyncError for Error Report.


fieldsToNull in Salesforce API Call

Array of one or more field names whose value you want to explicitly set to null.
When used with update() or upsert(), you can specify only those fields that you can update and that have the nillable property. When used with create(), you can specify only those fields that you can create and that have the nillable or the default on create property.

For example, if specifying an ID field or required field results in a runtime error, you can specify that field name in fieldsToNull. Similarly, if a picklist field has a default value and you want to set the value to null instead, specify the field in fieldsToNull.

To reset a field value to null, you add the field name to the fieldsToNull array in the sObject. You cannot set required fields (nillable is false) to null.

Sample Code:

  1. sObject objContact = new sObject();  
  2. objContact.type = "Contact";  
  3. // Set the value of LastName to null  
  4. errorContact.fieldsToNull = new String[] { "LastName" };