Blogs

  • Enum for Salesforce Apex Trigger Operations

    The System.TriggerOperation enum has the following values: The new Trigger context variable Trigger.operationType will return System.TriggerOperation enum during trigger context. If you combine this new context variable and the new Apex switch feature, trigger code becomes much easy to implement and understand. An Example of Using Switch and Enum in Triggers

    Read more…

  • How can we maintain state across batches in apex

    INTRODUCTION Today, we will discuss the Database.Stateful interface, which plays a crucial role in maintaining state across batch call methods. When working with the Database.Stateful interface, instance member variables of a class retain their values between transactions of the execute() method, while static variables do not support this feature in the context of a Batch…

    Read more…

  • Transform a Set of IDs into a Set of Strings Using Apex

    Here is a concise one-liner of code

    Read more…