Newer Version Available
Field Service Org Setup
Lightning web components for LWC Offline-enabled mobile apps is an opt-in feature. To enable it for your org, you must create and assign a permission set for your mobile users that includes enabling the Access Lightning Web Components in Field Service Mobile permission. This permission set is required to access and run LWCs within the Field Service mobile app. (While not technically required to develop LWCs, you’ll have a hard time developing components when you can’t run them.)
You can use this one permission set for any number of Lightning web components and mobile users.
Alternatively, you can use LWC org-wide enablement by choosing the org preference Enable Lightning Mode.
Define a Permission Set for Your Org
- From Setup, enter Permission Sets in the Quick Find Box and select Permission Sets.
-
Click New.
- For Label, enter Field Service - LWC Offline.
- For Description, enter Assign to Field Service Mobile users to give them permission to run LWC actions.
- For License, select Field Service Mobile.
- Click Save.
- In the Find Settings box, enter Access Lightning Web Components in Field Service Mobile and click it.
- Click Edit.
- Select the Access Lightning Web Components in Field Service Mobile checkbox.
- Click Save.
Assign the Permission Set to a Mobile User
- From Setup, enter Permission Sets in the Quick Find Box and select Permission Sets.
- Select Field Service - LWC Offline, which is the new permission set.
- Click Manage Assignments.
- Click Add Assignments.
-
Select your mobile user’s checkbox.
For the quick start, the mobile user is you.
- Click Assign.