Blogs

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

  • Query Current Step Number for Approval process

    QUESTIONIs it possible to retrieve the current Step Number for an approval process via a query? If so how? I don’t see this as available field in the ProcessInstanceNode object. Note: Looking for Step Number – not step name ANSWER Let’s understand Data model behind approval process.ProcessInstance : This table store the data about which record…

    Read more…