Monday, June 15, 2009

Understand the structure of all the URLs in Salesforce

Important notes on 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:

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

cs2 - Sandbox #1

cs3 - Sandbox #2

https://xyz.salesforce.com

Where xyz is the name of the instance your organization is on.

Objects Objects’ code
Accounts 001
Contacts 003
Users 005
Leads 00Q
Cases 500
Solutions 501
Reports 00O
Opportunities 006
Campaigns 701
Products 01t
Setup Objects’ code
Setup
Apps 02u
Custom Labels 101
Packages 033
Workflow Rules 01Q
Tasks 01V
Email Alerts 01W
Field Updates 04Y
Outbound Messages 04k
Apex Classes 01p
Static Resources 081
Sites 0DM/o
S-Controls 01N
Home Page Layouts 02T
All Custom Report Types 070
Visualforce Pages 066
Email Templates 00X
Letterheads 016
Mail Merge Templates 01H
Analytic Snapshots 0A0
Approval Processes p/process/ProcessDefinitionSetup?
Email Services email/admin/listEmailServicesFunction.apexp?
Visualforce Components apexpages/setup/listApexComponent.apexp?
Roles setup/user/roleSplash.jsp?
Profiles setup/ui/profilelist.jsp?
Public Groups p/own/OrgPublicGroupsPage?
Queues p/own/OrgQueuesPage?
Sharing Settings p/own/OrgSharingDetail?
Company Information your org id
Storage Usage setup/org/orgstorageusage.jsp?id=your org id
Debug Logs p/setup/layout/ApexDebugLogEdit?
Triggers p/setup/layout/ApexTriggerList?type=Account
Contact Page Layout ui/setup/layout/PageLayouts?type=Contact
Search Layouts ui/setup/layout/ListLayouts?type=Account
Record Types ui/setup/rectype/RecordTypes?type=Account

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/[Objects’ code]/o

ie: https://emea.salesforce.com/001

Create a new record

https://[instance].salesforce.com/[Objects’ code]/e

ie: https://emea.salesforce.com/001/e

Edit a record

https://[instance].salesforce.com/[recordID]/e

ie: https://emea.salesforce.com/0037000000g9mK4/e

Clone a record

https://[instance].salesforce.com/[recordID]/e?clone

Delete a record

https://[instance].salesforce.com/setup/own/deleteredirect.jsp?delID=[recordID]

Followers