Blogs

  • 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…

  • How to retrieve domain name from Salesforce org

    Select Domain FROM domain The Domain object is related to Site.com, which will not return org domain. So what is workaround? Here is below code snippet.

    Read more…