Blogs

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

  • Fetching Salesforce Custom Labels Dynamically In Apex

    Salesforce developers frequently encounter the task of accessing custom labels within their Apex code. Custom labels represent a robust feature in Salesforce, enabling developers to oversee application text centrally, facilitating straightforward translation and updates. The resolution centers on employing a straightforward yet efficient code snippet: This code snippet is straightforward, featuring a static method named…

    Read more…