Salesforce’s URL Structure
UPDATE: Public apologies to Mike Schinkel, this post was inspired by Mike’s “URL Structure“. I decided to write a similar post to include the full list of known instances, mine wasn’t certainly a way to get credit for something you wrote first Mike! Sorry!
Finally found the structure to delete a record in SF, adding it below. Eoin
Here’s a quick introduction to understand the structure of all the URLs in Salesforce:
Instances
Salesforce’s organizations reside on multiple instances, to find out what instance you’re on, once you logged into Salesforce, have a look at the address bar; you’ll notice the URL starts with something like:
ssl - North America #0 (aka na0)
na1 - North America #1
na2 - North America #2
na3 - North America #3
na4 - North America #4
na5 - North America #5
emea - Europe, Middle East, Africa
ap - Asia, Pacific
tapp0 - Sandbox #0
tapp1 - Sandbox #1
https://xyz.salesforce.com
where xyz is the name of the instance your organization is on.
Objects’ specific URLs
Every Salesforce’s object has it’s specific URL, here are listed the links to the standard objects:
| Objects | URLs | Objects’ code |
|---|---|---|
| Accounts | https://[instance].salesforce.com/001/o | 001 |
| Contacts | https://[instance].salesforce.com/003/o | 003 |
| Leads | https://[instance].salesforce.com/00Q/o | 00Q |
| Cases | https://[instance].salesforce.com/500/o | 500 |
| Solutions | https://[instance].salesforce.com/501/o | 501 |
| Reports | https://[instance].salesforce.com/00O/o | 00O |
| Opportunities | https://[instance].salesforce.com/006/o | 006 |
| Campaigns | https://[instance].salesforce.com/701/o | 701 |
| Products | https://[instance].salesforce.com/01t/o | 01t |
Basic action URLs
Use the following URLs to perform the listed operations on a specific object. Note this is fundamental to then understand how to create internal custom links.
Object’s overview page
https://[instance].salesforce.com/[object]/o
ie: https://emea.salesforce.com/500/o
Create a new record
https://[instance].salesforce.com/[object]/e?retURL=/[object_code]/o
ie: https://emea.salesforce.com/500/e?retURL=/500/o
Edit a record
https://[instance].salesforce.com/[object]/[recordID]/e?retURL=[recordID]
ie: https://emea.salesforce.com/50020000000chRD/e?retURL=/50020000000chRD
Clone a record
https://[instance].salesforce.com/[object]/[recordID]/e?retURL=[recordID]&clone=1
Delete a record
https://[instance].salesforce.com/setup/own/deleteredirect.jsp?delID=[recordID]
where:
- [instance] is the instance’s name your organization resides on;
- [object] is the object’s code;
- [recordID] is the ID of the record itself.
8 Comments, Comment or Ping
Thank you so much–this is most helpful.
How can I determine the Object Code of a custom object?
Got it… click on the New button to create a new record for the custom object and decompose the URL as noted in the article above (doah!)
Why does it seem like this post is a blatant rip-off of my post from last October but with no attribution?
http://www.thoughtsonsalesforc.....cture.html
Mike as you can see I updated the post, sorry for the misunderstanding, my original post had a ‘credits’ section that was left over when I updated my stylesheet. Apologies!
I find your info extremely helpful BTW….
So a previous person has created a custom link at the Opportunity Level that allows a salesperson to create a new contract, in a new window
It seems to know/”pull” some info.
It’s using 800 but I didn’t see that in your list of object’s codes
What I want to do is populate specific fields at that new Contract with specific fields from the Opportunity we “jumped from”
Does that makes sense?
Any help would be greatly appreciated!
Thanks in advance!
Does anyone know how to use a URL string to update a record? Is it possible?
on 12 Nov 2008 @21:39
Reply to “Salesforce’s URL Structure”