Salesforce Lightning Custom Datatable Pagination & Sorting
Apex Class: Lightning Component: Lightning JS Controller: Lightning JS Helper:
Apex Class: Lightning Component: Lightning JS Controller: Lightning JS Helper:
Example code snippet RESULT
An enum is a data structure that represents a set of predefined values, where each value is associated with a unique identifier. Enums are commonly used to define a fixed set of possible values. While each value in an enum… Read More »Understand Apex Enum
In Salesforce, you can set the “From” address in a SingleEmailMessage by using the setOrgWideEmailAddressId method. Here’s an example of how you can set the “From” address: Make sure to replace [OrgWideEmailAddressId] with the actual Organization-Wide Email Address ID that… Read More »Setting From Address in Single Email Message in Salesforce
Custom Settings and Custom Metadata are two types of custom configuration data in Salesforce. Here are the main differences between them: Overall, the choice between Custom Settings and Custom Metadata depends on the specific use case and requirements of the… Read More »Difference between Custom Setting and Custom Metadata
To retrieve records in Salesforce using a curl request in Apex, you would need to make use of Salesforce’s REST API. Assuming you are well aware of HTTP requests, REST Api and cURL; Here’s an example of how you can… Read More »Using cURL in apex to retrieve the records in Salesforce
INTRODUCTION The objects ‘SandboxInfo’ and ‘SandboxProcess,’ are available in API v35 or higher, and allow you to create and refresh sandboxes. Tolloing api can be used to create or refresh the sandbox. SandboxInfoRepresents a sandbox. SandboxInfo enqueues a sandbox for creation… Read More »How can we refresh or create Sandbox using API in Salesforce
Introduction This error is thrown while sending email using apex if you are setting User Id in target recipient: setTargetObjectId(usr.Id) and also specifying target record id as: setWhatId(opp.Id). As per Salesforce documentation if you are passing record id in WhatId… Read More »INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds
In case if you are looking to disable standard duplicate rule while creating record from apex – especially in case of integration and backend processes – we can use DMLOptions.DuplicateRuleHeader as below.