Created
March 16, 2015 04:47
-
-
Save jkentjnr/46b280737dd7d289955a to your computer and use it in GitHub Desktop.
Get Salesforce Instance URL using Apex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get Current SFDC Instance URL | |
// For example: AP1 = 'https://ap1.salesforce.com | |
URL.getSalesforceBaseUrl().toExternalForm(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment