Handle Salesforce SOQL Offset Limitation
In Salesforce SOQL, we cannot set the Offset value more than 2000. In order to overcome the Offset limitation, we can avoid using it and order the records based on ....
In Salesforce SOQL, we cannot set the Offset value more than 2000. In order to overcome the Offset limitation, we can avoid using it and order the records based on ....
We cannot define the same HTTP Method multiple times in the same Apex REST Class. We get the following exception when we try to use the same HTTP Method multiple ....
In Salesforce Apex, getQuiddity() returns the Quiddity value of the current Request object. It can be used to find the Salesforce Apex current running context. Sample Apex Class: public class ....
To insert Salesforce Knowledge Article Data Categories Assignment using Apex, we have to make use of knowledge__DataCategorySelection object/entity. Sample Apex Code: knowledge__DataCategorySelection objDCS = new knowledge__DataCategorySelection( DataCategoryName = 'FAQ', DataCategoryGroupName ....
If you want to query Salesforce Content Document Link(ContentDocumentLink) records to which they are attached when the Service Report is generated, we have to use the ParentId on the Service Report ....
To generate unique identifier (UUID) using Salesforce Apex, randomUUID() from UUID class can be used. Sample Code: UUID randomUUID = UUID.randomUUID(); System.debug( 'randomUUID is ' + randomUUID ); System.debug( 'randomUUID ....
ObjectPermissions object/entity should be queried for Profile of UserType Guest to find Salesforce Guest User Profiles Object Access. Sample Apex Code: List < ObjectPermissions > listObjPerms = [ SELECT Parent.Profile.Name, ....
Salesforce Apex can be used to bulk create multiple or mass records. Sample Code: List < Case > listCases = new List < Case >(); for ( Integer i = ....
JSON.serialize() method can be used to generate JSON String from Salesforce Records Update. Sample Trigger to generate the JSON Payload: trigger Accounttrigger on Account ( after update ) { List ....
getRelationshipOrder() method from the DescribeFieldResult class can be used to check the relationship type(Master-Detail or Lookup) using Salesforce Apex. getRelationshipOrder() return value will be null for Lookup relationships. getRelationshipOrder() will ....