• Kinetic Growth 4
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,

I'm trying to figure out a way to obtain the instance information from Custom Production / Sandbox URLs.

For example: If a Standard URL is "https://eu3.salesforce.com/" the instance information I'm looking for is "eu3" which can be obtained by calling "System.URL.getSalesforceBaseUrl()" and then parsing out the string.

But, when the URL is something like, "https://abc.my.salesforce.com/", how do I get the instance? Any help appreciated.

Thanks,
Shashank
Hi,

I'm trying to figure out a way to obtain the instance information from Custom Production / Sandbox URLs.

For example: If a Standard URL is "https://eu3.salesforce.com/" the instance information I'm looking for is "eu3" which can be obtained by calling "System.URL.getSalesforceBaseUrl()" and then parsing out the string.

But, when the URL is something like, "https://abc.my.salesforce.com/", how do I get the instance? Any help appreciated.

Thanks,
Shashank