Decoding Salesforce

Decoding Salesforce

The hows and whys of Salesforce.com

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.
Advertisement

8 Comments, Comment or Ping

  1. §

    Thank you so much–this is most helpful.

    By Kathy on 26/01/2007 - 02:23

  2. §

    How can I determine the Object Code of a custom object?

    By Steve Stein on 11/03/2007 - 15:22

  3. §

    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!)

    By Steve Stein on 11/03/2007 - 15:24

  4. §

    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

    By Mike Schinkel on 28/03/2007 - 01:11

  5. §

    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!

    By Ale on 28/03/2007 - 09:17

  6. §

    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!

    By Brad on 23/05/2007 - 02:57

  7. §

    Does anyone know how to use a URL string to update a record? Is it possible?

    By BrianK on 29/10/2007 - 18:22

  1. Social anxiety prozac.
    on 12 Nov 2008 @21:39

Reply to “Salesforce’s URL Structure”

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information relevant to your comment.

Subscribe

Feed your RSS reader.