How to get Salesforce URL using Apex?

Sample Code:

String baseURL = URL.getSalesforceBaseUrl().toExternalForm();

Cheers!!!

No comments:

Post a Comment