How to get the Salesforce Instance Server URL from APEX Class?

This can be used to get the ID of current record.


This can be used to get the current host in the url for e.g: “”.


Written by 

3x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published.