Newer Version Available
Navigation Actions in the Field Service 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 Field Service Mobile app.
- standard__webPage
You can implement a surprising number of different navigation actions with this PageReference type. The following are examples of navigation actions, and the PageReference used to implement them.
Navigate from LWC to a Native Screen 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.
Navigate to a Quick Action via Deep Link
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": `com.salesforce.fieldservice://v1/sObject/${this.recordId}/quickaction/<api_name>`
5 }
6}Open Salesforce Mobile App via Deep Link
1{
2 "type": "standard__webPage",
3 "attributes": {
4 "url": "salesforce1://sObject/WorkOrder/home"
5 }
6}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}