We often find ourselves in a situation where a specific code block that is stringed together in trigger which should not be executed in batch mode. The reason might be that batch execution might be triggering more number of triggers and hit any given governed limits. To achieve this in there is a method available…
Category: Salesforce
Extracting Field Level Security using the batch class
Most often Salesforce admins and developers tend to spend lot of time figuring out fields level security on multiple objects and fields and such process is time consuming in nature. The following code is an attempt to extract FLS for a given object and for profile. Step 1: Creation of batch class with Parameterized Constructor,…
JSON Class & JSON Parser
JSON is short for JavaScript Object Notation, and is a way to store information in an organized, easy-to-access manner. In a nutshell, it gives us a human-readable collection of data that we can access in a really logical manner. You can skimm about JSON in this article. In real time we need to parse JSON data comes…
Triggers and Order of Execution
Before Salesforce executes on event on the server, the client browser runs JavaScript validation check. On the server, Salesforce: Loads the original record from the database or initializes the record for an upsert statement.Loads the new record field values from the request and overwrites the old values. If the request came from a standard UI edit page,…