You are here:
Salesforce App URL Scheme Format
You can use two different formats to make a request to a Salesforce URL scheme.
For all actions, except viewing an object’s home page, use this format.
<scheme_name>://sObject/<id>/<action>To view the home page of an object, rather than a specific record, use the object’s name and
the home
action.
<scheme_name>://sObject/<ObjectName>/homeLet’s break down each parameter of the URL scheme format.
scheme_name—A supported Salesforce scheme name.sObject—Indicates a single instance of a Salesforce object.Note This parameter supports persisted data types besides sObjects, such as Apex. See An Introduction to Apex for more information.id—The unique single instance of a Salesforce object, a specific record, referenced by ID. Salesforce objectidlengths of both 15 and 18 characters are supported.ObjectName—The API name of a Salesforce object. This value is case-sensitive. For example, useAccount, notaccount.action—A supported URL scheme operation.
Scheme Names
The Salesforce Mobile app supports the following values for scheme name in deep link URLs.
-
salesforce1://
Actions
The Salesforce Mobile app supports a number of different record- and object-specific actions in deep links.
These are the available action parameters for URL
schemes.
view—Navigates the user to the Salesforce app to view a record in detail.edit—Navigates the user to the edit detail page of a record.home—Navigates the user to the home page of an object.download—Download any version of a file.follow—Follow users to see their posts, comments, and likes in your feed.
View a Record
Use this URL scheme to view a record detail page.
<scheme_name>://sObject/<id>/view
This example navigates to an Account record detail page:
salesforce1://sObject/001D000000Jwj9v/viewEdit a Record
Use this URL scheme to edit a record.
<scheme_name>://sObject/<id>/edit
This example navigates to an Opportunity record edit page.
salesforce1://sObject/006R0000001r7Rq/editNavigate to Record Home
Use this URL scheme to navigate to the home page of an object.
<scheme_name>://sObject/<ObjectName>/home
This example navigates to the Opportunity home page.
salesforce1://sObject/Opportunity/homeObjectName value is case-sensitive and requires
the API name of the object.Download a File
Use this URL scheme to view and save offline (download) a Salesforce file.
<scheme_name>://sObject/<id>/download
This example navigates to a document and downloads it to save it offline.
salesforce1://sObject/069R00000000mr3/downloadThe download action only supports ContentDocument and ContentDocumentVersion
objects.
The download action for Android only opens the file, and doesn't save it offline.
Follow a User
Use this URL scheme to follow a user and navigate to their profile page.
<scheme_name>://sObject/<id>/follow?userid=<target_user_id>
The URL scheme navigates to the profile page if the user is already being followed.
?userid=<target_user_id>: Thetarget_user_idis the user ID of which the URL scheme link (for example, via email) to follow a user is sent to. Currently the Salesforce mobile app will only follow the target profile page if the<target_user_id>matches that of the current user.
This example follows the target <userid> and
navigates to their profile
page.
salesforce1://sObject/005R0000000Df5W/follow?userid=005R0000000HfcFfollow action only the supports User object.
