Salesforce Apex Execution Quiddity value
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 ....
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 ....
oncellchange event can be used for cell or column level changes validation. onsave event can be used used for validating all the values that are updated. Sample Code: Apex Class: ....
Database.queryWithBinds() in Salesforce Apex allows us to dynamically pass bind variables values to a Salesforce SOQL Query string. Map < String, Object > datatype reduces the number of parameters declaration ....