To use maps in the Field Service mobile app, first assign licenses. Then, create feature layers in the ArcGIS portal. Finally, assign them to maps, and define the authentication to use to access the map.
Required Editions
| Available in: Lightning Experience. |
| Available in: Enterprise Edition with the Asset Service Lifecycle Management add-on license, or in Performance, Unlimited, and Developer Editions. |
-
Determine whether you're using ArcGIS Online or ArcGIS Enterprise. See The differences between ArcGIS Online and ArcGIS
Enterprise.
- ArcGIS Online (AGOL) is Esri's cloud-hosted platform. Salesforce and ArcGIS Online communicate over the public internet, so no firewall or domain allowlisting is required.
- ArcGIS Enterprise typically runs on your own infrastructure and requires network configuration between Salesforce and your ArcGIS Enterprise environment. See the next step.
-
If you're using ArcGIS Enterprise, open network access to your Salesforce account in your
ArcGIS Enterprise environment.
- While you're setting up and testing the connection in a sandbox, contact Salesforce Support to open a case for outbound callout access to your ArcGIS Enterprise domain.
- This step applies whether you're working in a sandbox or in production. Contact Salesforce Support to open a case for your org's current Salesforce IP ranges, and give the ranges to your network team to open inbound access to your ArcGIS Enterprise machine. Include your org's instance in the case. From Setup, in the Quick Find box, enter Company Profile, and then select Company Information to find it.
-
Assign the following Esri licenses to access the ArcGIS portal:
- Each mobile worker needs a Mobile Worker user type license to generate location data to create or update records in Salesforce.
- The connector and the Admin need a single ArcGIS Creator user type license to update records in the ArcGIS portal and to build ArcGIS web maps.
-
Create one or more hosted feature layers. Consider what data you want to display, how you
want to display it, and who should have access to it. Each hosted feature layer can contain
multiple layers. Feature layers can either provide data from an external source, or display
Salesforce data, by using the Salesforce connector. See Hosted feature layers.
- If you are using a Native GIS connector, select Enable editing, and then select Add, Delete and Update. See Manage hosted feature layer editing.
-
In the Data tab, for each layer that displays a Salesforce object, click Add
Field and define the following fields:
salesforce_record_id_c and salesforce_object_name_c as Text datatypes.
salesforce_lastmodified_date_c as a Date datatype.
- To use the map in offline mode, make sure that Enable sync is selected on the Settings tab of the hosted feature layer's item page. This is necessary regardless of the data type that the feature layer displays. See Allow offline editing or collaboration.
-
Create a web map in your ArcGIS portal. See How to create a web map.
- Add a default basemap.
- Add the required feature layers.
- In the Offline tab, make sure that the map is compatible for offline use. See Take web maps offline.
Note If the service appointment lacks coordinates, the app uses the position and scale that is shown when you save the map. -
Define whether to use app or user authentication to allow access to map content and
location services in the ArcGIS portal. See Authentication comparison and App authentication for online users. These
options are available.
- User authentication for mobile workers: Use this option for all mobile workers, to
allow them to log in with their own credentials. As a "Named User" your specific permissions
control what you can see and do. This method can also be used by connectors.
Important Make sure that you define authenticate-with-oauth://auth as the redirect URL to use for authenticating the mobile worker when they log into the map for the first time. - App authentication for the connectors: Use this option to identify the application itself as the entity to run background processes, and to provide public access when you don’t need users to sign in.
- User authentication for mobile workers: Use this option for all mobile workers, to
allow them to log in with their own credentials. As a "Named User" your specific permissions
control what you can see and do. This method can also be used by connectors.
- Copy the Client ID and Client Secret that you receive. You'll need these details for setting up the authentication in Salesforce.