Find Your Instance With A Custom Domain

Find Your Salesforce Instance With A Custom Domain

If you have already created a custom domain for the lightning modules, and now you are working on the Apex Web Services module in Apex Integration Services on trailhead, you might wonder how you are supposed to find your instance. 

So the in module walk through in this module, has you create a case with workbench, then you grab you session ID, and then “cURL” your REST endpoint.  Your cURL command is made up of the following text: 
curl<Record_ID> -H 'Authorization: Bearer<your_session_id>' -H 'X-PrettyPrint:1'
You insert the ID of the Case you created where it says “<Record_Id>”, and your session id where it says “<your_session_id>”, and you might over look it at first, but you need to replace “instance” with your Salesforce instance.
If you have already done the Lightning Modules, you probably have a Custom Domain setup, so when you look at your Salesforce URL it says something like: so how do you find your instance?  
You can go to, where Salesforce has setup a lovely lookup for your domain.



Click My Domain in the Upper Right


Then just enter your custom domain & click search

So take your salesforce URL:
and remove all the stuff from .my.salesforce on and remove it:
then remove the “https://&#8221;:

and enter what you have left into the lookup box, and click find.  Viola! You have your instance.  Now finish updating your cURL text and continue on your trail.


What are your thoughts? Seriously, comment.

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s