How a Salesforce URL is Formatted

salesforce URL 1If you are just starting out as a Salesforce admin or maybe even a user, knowing how a Salesforce URL is built is quite useful. When working with standard Salesforce records, the format of the URL is usually the same unless you have custom pieces of Visualforce. The format you are used to will look something like this: https://na15.salesforce.com/003i000000im5km

Even though this might look like nonsense, the URL does have a precise structure that all Salesforce admins need to know.

Server Instance – https://na15.salesforce.com

The first part of the URL refers to the server instance your Org is on. The server instance is automatically assigned when you sign up for Salesforce. The “na” part of the link refers to the country of which the server instance is in. NA stands for North America, Salesforce also has instances in APAC (ap) and EMEA (eu). If you are running a sandbox, the abbreviation is cs. The “15” in the link refers to the server instance in that country you are assigned to. This information is especially helpful if you are having Salesforce issues, as you can easily check Salesforce’s Trust page. This gives you up -to-date information about every server instance and if there are any known problems.

Object Key Prefixes – 003

The three characters (sometimes numbers and letters) at the start of the ID appended to the first part of the link references the object you are currently working on. The link above, which is from one of my developer instances, refers to the contact object. This is especially helpful to know if you are URL hacking. Here are a few examples of some other Salesforce Object Key Prefixes. You can view a more complete list of Object Key Prefixes here.

  • Account – 001
  • Contact – 003
  • Opportunity – 006
  • Report – 00O
  • Lead – 00Q

Record ID – i000000im5km

The last part of the Salesforce URL is the actual record ID. The full ID does include the Object Key Prefix above, so it’s useless on its own. But it’s still useful to know how the Record ID is built up: Object Key Prefix + ID = Record ID.

Ben McCarthy is a certified Salesforce admin and developer. He writes the popular Salesforce Blog, Salesforce Ben. Ben has a wealth of experience in the Salesforce ecosystem as a Business Analyst, Head of CRM and Certified Sales Cloud consultant.

Comments

No comments yet.