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:

ObjectsURLsObjects’ code
Accountshttps://[instance].salesforce.com/001/o001
Contactshttps://[instance].salesforce.com/003/o003
Leadshttps://[instance].salesforce.com/00Q/o00Q
Caseshttps://[instance].salesforce.com/500/o500
Solutionshttps://[instance].salesforce.com/501/o501
Reportshttps://[instance].salesforce.com/00O/o00O
Opportunitieshttps://[instance].salesforce.com/006/o006
Campaignshttps://[instance].salesforce.com/701/o701
Productshttps://[instance].salesforce.com/01t/o01t

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.
If you liked this post, buy me a beer! 3EUR, securely via PayPal

10 Responses to “Salesforce’s URL Structure”

  1. Kathy says:

    Thank you so much–this is most helpful.

  2. Steve Stein says:

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

  3. Steve Stein says:

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

  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

  5. Ale says:

    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!

  6. Brad says:

    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!

  7. BrianK says:

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

  8. Maksim says:

    HI,
    cna any one paste some examples please,
    and explain what tehy do, like create task/oppty etc.
    much apreciated

  9. Tomek says:

    Ale,

    thanks for keeping this website alive as the original contributor Mike Schinkel has taken the info offline (http://www.thoughtsonsalesforc.....cture.html).
    Good old internet – once something is in it’s mirrored around the web.

    Tomek

  10. Veronica says:

    Hi,

    Does anyone know what is the compile limit for a Custom Button URL?

    Thanks

Sorry, comments are closed.