Blogs

  • Dynamically Accessing Labels In Apex

    The Summer ’23 update of Salesforce has brought forth a novel feature known as Dynamic Access Labels in Apex. This feature enables developers to utilize the System.Label.get(namespace, label, language) method to retrieve a custom label, with the option to specify a language. Consequently, developers can dynamically resolve label names during runtime, even overriding the user’s…

    Read more…

  • How Can You Display The Salesforce Session ID In The Apex Debug Log?

    You’re likely familiar with the UserInfo.getSessionId() method in Apex, commonly used for making Webservice calls. However, displaying it for external use can be challenging. When debugging, the log will typically output: Even if you concatenate a string to it, you will consistently receive the SESSION_ID_REMOVED. However, upon researching online, I discovered a solution that proves…

    Read more…

  • Generating UUIDs In Apex (Spring ’24 Release)

    The Spring ’24 release of Salesforce brought a noteworthy enhancement for Apex developers: the capability to generate Version 4 UUIDs (Universally Unique Identifiers). These UUIDs are crafted using a cryptographically robust pseudo-random number generator, guaranteeing distinct identifiers for your Salesforce objects. Here’s a brief tutorial on incorporating this feature into your Apex code. Grasping the…

    Read more…