Blogs

  • Get Community/Digital Experience Site Base URL in Apex Dynamically

    If you are using Salesforce Community and you have network Id of the community but I don’t know how to get Base URL of the community. Here is a way to get the community base URL using its id in apex: Usage: Id communityId = Network.getNetworkId(); getCommunityURL(communityId);

    Read more…

  • Get IP address of you current Salesforce Org

    Read more…

  • How to trigger a flow from apex in Salesforce

    In this blog, we will discuss on how to invoke a lightning Auto launched flow from the apex class. 1. It works only with autolaunched Flow. 2. Use the start method in the Flow.Interview class to launch an autolaunched flow or user provisioning flow from Apex. 3. In this example, we will use a visualforce page where flow will be invoked…

    Read more…