Navigation Actions in the Salesforce Mobile App
Each Salesforce mobile app implements support for the navigation service independently, which results in some differences in available navigation actions. The following PageReference types are supported by the LWC navigation service when used in the Salesforce Mobile App Plus mobile app.
- standard__quickAction
- standard__webPage
You can implement a surprising number of different navigation actions with these PageReference types. The following are examples of navigation actions, and the PageReference used to implement them.
Navigate to a Quick Action
1{
2 "type": "standard__quickAction",
3 "attributes": {
4 "actionName": `objectApiName.actionApiName` },
5 "state": {
6 "recordId": "<recordId>",
7 "objectApiName": "<objectApiName>"
8 }
9}
Open Salesforce Mobile App via Deep Link
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "salesforce1://sObject/001D000000Jwj9v/view"
5 }
6}Open the Field Service Mobile App via Deep Link
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": `com.salesforce.fieldservice://v1/sObject/${this.recordId}/details`
5 }
6}There’s a wide range of targets available for deep linking into the Field Service mobile app. See Deep Linking Schema for the Field Service Mobile App in the Field Service Developer Guide for available URL formats.
Open Web Page
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "https://salesforce.com"
5 }
6}Open Email App
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "mailto:help@AcmeSupport.com?subject=Help with Asset"
5 }
6}Open Phone App
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "tel:123-456-7890"
5 }
6}Open Message App
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "sms:12345678"
5 }
6}