Salesforce Mobile App URL Schemes

Similar documents
Salesforce Classic Mobile User Guide for Android

Financial Services Cloud Quick Start

Salesforce Classic User Guide for Android

Utility Bar API Implementation Guide

Set Up and Manage Salesforce Communities

Salesforce App Help. Salesforce, Winter

Sync to a Secondary Salesforce Organization

Getting Started with the Aloha Community Template for Salesforce Identity

Set Up and Maintain Collaboration Tools

The Admin's Guide to Entitlement Management

Convert Your JavaScript Buttons for Lightning Experience

Lightning Knowledge Guide

License Management and Support Guide

The Admin's Guide to Entitlement Management

Mobile Experience. Release Notes. Version: 5.2.x

Salesforce Lead Management Implementation Guide

Chatter Answers Implementation Guide

Salesforce Classic Mobile Guide for iphone

Create and Manage Partner Portals

Salesforce Classic Mobile Implementation Guide

Set Up Salesforce Files Sync

for Salesforce Question-to-Case Connector

The Admin's Guide to Entitlement Management

Salesforce Classic Guide for iphone

Visual Workflow Guide

Manage Duplicate Records in Salesforce PREVIEW

Salesforce Mobile App Security Guide

Salesforce Mobile App Security Guide

Getting Started with Relationship Groups

MIGRATING FROM PORTALS TO COMMUNITIES

Salesforce Classic Mobile Implementation Guide

Chatter Answers Implementation Guide

Custom Metadata Types Implementation Guide

Deploy Enhancements from Sandboxes

Visual Workflow Guide

Enhance Your Sales Cloud Implementation

Salesforce CRM Content Implementation Guide

Manage Duplicate Records in Salesforce

RingCentral for Salesforce. User Guide

Snap-Ins Chat. Salesforce, Summer

Snap-Ins Chat. Salesforce, Winter

NPSP Advanced User's Guide to Importing Data

Sync Your Contacts and Events with Lightning Sync

Omni-Channel for Administrators

About this Integration

Case Management Implementation Guide

Using the Salesforce1 App

Deploy Enhancements from Sandboxes

Visual Workflow Guide

Getting Microsoft Outlook and Salesforce in Sync

Salesforce Lead Management Implementation Guide

Custom Metadata Types Implementation Guide

RingCentral for Salesforce. Administrator Guide

Omni-Channel for Administrators

Visual Workflow Guide

Live Agent for Support Agents

Visual Workflow Guide

Self-Service Portal Implementation Guide

Mobile Android Configuration Guide

Salesforce Enterprise Edition Upgrade Guide

S-Drive Configuration for Salesforce.com Communities v1.25

CRM Connector for Salesforce

Install Guide WINTER '15 REVISION C. C o p y r i g h t C l o u d A p p s L t d

Entitlement Management Implementation Guide

Custom Metadata Types Implementation Guide

Analytics External Data API Developer Guide

Visual Workflow Guide

Visual Workflow Implementation Guide

Getting Microsoft Outlook and Salesforce in Sync

Salesforce Communities Managers Guide PREVIEW

8x8 Virtual Office Telephony Interface for Salesforce

PowerExchange for Facebook: How to Configure Open Authentication using the OAuth Utility

Create an account in Salesforce using the Web Services consumer functionality

Salesforce.com Summer '10 Release Notes

evoclock+ - AsureForce Mobile V3.0 Reference Guide AsureForce Mobile Version 3.0 Reference Guide AsureForce Mobile 1 P a g e

Salesforce Classic Implementation Guide

Getting Microsoft Outlook and Salesforce in Sync

This guide covers the installation, setup, and configuration of Sertifi for Salesforce CPQ.

RingCentral for Salesforce Classic. UK Administrator Guide

Administrator Guide. v Decisions on Demand, Inc. - All Rights Reserved

Package and Distribute Your Apps

Set Up and Configure Salesforce Advisor Link

Cloud Flow Designer Guide PREVIEW

Salesforce ldeas Implementation Guide

Salesforce App Admin Guide

Set Up and Maintain Sales Tools

Salesforce Integration Use Case

Sales Productivity. Salesforce, Winter

Quick Actions Implementation Guide

Quick Actions Implementation Guide

Salesforce1 Mobile App Admin Guide

Record-Level Access: Under the Hood

Package and Distribute Your Apps

Marketing Cloud Mobile App

Salesforce DX Setup Guide

Add Authentication to the Public Store Front

Using the Drag-and-Drop Report Builder

Money Management Account

Entrust PartnerLink Login Instructions

Quick Actions Implementation Guide

Transcription:

Salesforce Mobile App URL Schemes Version 2, 2 @salesforcedocs Last updated: November 2, 2017

Copyright 2000 2017 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc., as are other names and marks. Other marks appearing herein may be trademarks of their respective owners.

CONTENTS Chapter 1: The Salesforce App........................................... 1 Chapter 2: Salesforce App URL Scheme Format.............................. 2 Scheme Names....................................................... 3 Actions............................................................. 3 View a Record........................................................ 3 Edit a Record......................................................... 3 Navigate to Record Home................................................ 3 Download a File...................................................... 4 Follow a User........................................................ 4 Chapter 3: Additional Query Parameters................................... 5 Query Parameters..................................................... 6 View a Record in a Specific Organization...................................... 6

CHAPTER 1 The Salesforce App This document describes URL schemes that are supported by the Salesforce mobile application for Android and ios. A URL scheme allows a user to launch Salesforce from a third-party or web application. An administrator or developer can customize a URL scheme to perform a specific action when Salesforce launches. For example, if a user receives an email about a feed post, you can create a link for the user to tap to view the post in the Salesforce app. We ll go through the supported URL schemes, attributes, and formatting required to implement URL schemes. Overview Salesforce-supported URL schemes allow your users to launch Salesforce and perform one of several actions: View a specific record in Salesforce (such as record page, feed post, and user profile pages). View and download files. Follow a user and navigate to the user profile page. 1

CHAPTER 2 Salesforce App URL Scheme Format In this chapter... Scheme Names Actions View a Record Edit a Record Navigate to Record Home Download a File Follow a User 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, use the object s name and the home action. <scheme_name>://sobject/<objectname>/home Let 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 can also support other persisted data types, such as Apex. See An Introduction to Apex for more information. id The unique single instance of a Salesforce object. id lengths of 15 and 18 characters are supported. ObjectName The API name of a Salesforce object. This value is case-sensitive. For example, use Account, not account. action A supported URL scheme operation 2

Salesforce App URL Scheme Format Scheme Names Scheme Names Salesforce supports the following scheme_name parameters for URL schemes: salesforce1:// Actions 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. Now let s go through some examples of URLs. View a Record Use this URL scheme to navigate to Salesforce and view a record in detail. <scheme_name>sobject/<id>/view An example of the URL is below, which navigates the user to an Account detail page: salesforce1://sobject/001d000000jwj9v/view Note: The user must have permission to view the object type to view the record in detail. Edit a Record Use this URL scheme to navigate to the edit detail page of a record. <scheme_name>sobject/<id>/edit This example URL navigates the user to the edit detail page of an Opportunity. salesforce1://sobject/006r0000001r7rq/edit Note: The user must have permission to edit the record. Navigate to Record Home Use this URL scheme to navigate to the home page of an object. <scheme_name>sobject/<objectname>/home 3

Salesforce App URL Scheme Format Download a File This example URL navigates the user to the home page of an Opportunity. salesforce1://sobject/opportunity/home Note: The ObjectName value is case-sensitive and requires the API name of the object. Download a File Use this URL scheme to view and save a Salesforce file offline. <scheme_name>sobject/<id>/download An example of the URL is below, which navigates the user to a document and saves it offline. salesforce1://sobject/069r00000000mr3/download The download action only supports ID values for ContentDocument or ContentDocumentVersion objects. The download action for Android only opens the file, and doesn't save it offline. Note: The user must have permission to view or download a file. Follow a User Use this URL scheme to follow a user and navigate to the profile page. The URL scheme navigates to the profile page if the user is already being followed. <scheme_name>sobject/<id>/follow?userid=<current_user_id> Additional Parameter?userid=<current_user_id>: The current_user_id is the user ID of which the URL scheme link (for example, via email) to follow a user is sent to. Currently the Salesforce app will only follow the target profile page if the <current_user_id> matches that of the current user. An example of the URL is below, which navigates a user to follow the targeted <id> and profile page. salesforce1://sobject/005r0000000df5w/follow?userid=005r0000000hfcf The follow action only the supports User object. 4

CHAPTER 3 Additional Query Parameters In this chapter... Query Parameters View a Record in a Specific Organization The Salesforce URL schemes also support query parameters so users who belong to multiple organizations and communities can be correctly redirected. The additional query parameters append to the Salesforce URL scheme format: <scheme_name>sobject/<id>/<action><query_parameter> 5

Additional Query Parameters Query Parameters Query Parameters These query_parameter values are required for an optimal experience when navigating users via URL schemes. The more query parameters are appended to URL schemes, the more accurately users can be redirected. If no query parameters are appended to URL schemes, the likelihood of users getting misdirected increases. s1oid=<orgid>: The orgid is the organization ID of the organization that contains the content. If users are logged in to the same org ID, they are directed to the content. If users aren t logged in to the same org ID, they are redirected to the login screen. Note: If users aren t logged in to the same org ID on Android, they aren't redirected to the login screen. s1nid=<networkid>: The networkid is the network ID for the community that contains the content. The network ID is null if the community is internal or no community is specified. Users are directed to the correct community after the org ID is validated. s1uid=<userid>: The userid is the user ID of the user who has access to the data. If a user with a different userid than the one defined in the query parameter has access to the same organization or community, that user gets redirected to the same data. iosoru=<url>: The URL is the address where the Salesforce app prompts to redirect users if it can t direct them to the intended URL scheme. Let s see some examples of the optional query parameters. View a Record in a Specific Organization Use this URL scheme to navigate a user to a specific org and view a record in detail. <scheme_name>sobject/<id>/view?s1oid=<orgid> An example of the URL is below, which navigates the user to an Account detail page in a specific org: salesforce1://sobject/001d000000jwj9v/view?s1oid=00dt00000000abc Note: If the user isn t logged in to the specified org, the user is redirected to the login screen. The user must have permission to view the object type to view the record in detail. 6