Use these supported programmatic navigation actions in your Lightning web components intended for use in Salesforce Mobile App Plus.
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
Create a navigation action that opens an LWC-based quick action.
objectApiName.actionApiName represents the name of the quick action (actionApiName), and the sObject that it’s defined on (objectApiName). The state object provides a way to pass data into the target component. In this example, recordID and objectApiName are public properties defined in the objectApiName.actionApiName quick action’s JavaScript code.
Open Salesforce Mobile App via Deep Link
Create a navigation action that leaves Mobile App Plus, and opens a specific page in the Salesforce mobile app.
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
Create a navigation action that opens a screen that displays an external web page.