---
schema_version: "1"
id: 707b9aa9e6dd3c7a61d8a22793cafa78412cb553403ffddda6c66769bb8a29c6
title: Create Map Actions for Mobile Workers
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/mfs_native_gis_create_map_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.mfs_native_gis_create_map_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e537a1feb9b2c45db9c9133128ed57344b3b48b0428781ae6c5f5f4d58a3d7ba
description: Save mobile workers time and improve location accuracy by letting them complete field tasks directly from the map. Set up map actions to assign geospatial drawing tools to work order actions and object actions, so that mobile workers can create records and update locations by tapping or drawing on the map instead of entering coordinates by hand.
products:
  - Field Service
release: "264"
---
# Create Map Actions for Mobile Workers

Save mobile workers time and improve location accuracy by letting them complete field tasks directly from the map. Set up map actions to assign geospatial drawing tools to work order actions and object actions, so that mobile workers can create records and update locations by tapping or drawing on the map instead of entering coordinates by hand.

### Required Editions

Before you assign an action to the map, configure its underlying Flow, Data Capture package, or Lightning Web Component to receive the coordinates that the map captures. In the Flow, Data Capture package, or component, add text variables whose API names exactly match these injection parameters.

- For a point geometry, add `GIS_LATITUDE` and `GIS_LONGITUDE`.
- For a polygon geometry, add `GIS_POLYGON`.
- For a polyline geometry, add `GIS_POLYLINE`.
- To pass the parent work order's context to the action, add `workOrderId`.

Without these parameters, the action runs but doesn't receive the coordinates that the mobile worker selects on the map.

To use the attributes of a non-primed reference-layer record in a Flow or Lightning Web Component, also add variables whose names match the field names in the ArcGIS feature layer table. Variable labels can't contain a double underscore (`__`).

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> Edition with the Asset Service Lifecycle Management add-on license, or in <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d117934e119">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d117934e119 ">To set up map actions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d117934e119 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

Map actions come in two types.

- **General Actions** let mobile workers create new records linked to a work order. Mobile workers tap the **+** icon on the map, then use the geospatial drawing tool that you assign to the action to capture location data.
- **Object Actions** let mobile workers update or add records on map objects. The mobile worker selects an object and picks one of the actions you've added to its record layout. Depending on how you set up the action, the mobile worker either draws a new location to create a record, or updates an existing object's location by dragging or redrawing its geometry.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/images/icon_note.png)

Note Before you set up map actions, you need at least one active connector or a configured Related Objects data layer. The actions that you want to assign must already exist in Object Manager as Flows, Lightning Web Components, or Data Capture flows. General actions must be added to the Work Order record layout. Object actions must be added to the relevant object's record layout. See [Set Up a Native GIS Connector](https://help.salesforce.com/s/articleView?id=service.mfs_native_gis_connector_setup.htm&release=264.0.0&type=5 "To view Salesforce objects on the map, define a connector to automatically sync the Salesforce data with the relevant ArcGIS hosted feature layer. Map Salesforce objects and fields with ArcGIS layers, and define how often the connector should run. To update data at different intervals, you can create multiple connectors for each type of sync interval.").

1. From Setup, find and select **Field Maps Settings**.
2. Open the **Actions** tab.
3. If no actions are configured yet, click **Create Actions**. If actions already exist, click **Manage Map Actions**.
    
    ![Create Map Actions dialog. The Action Types column on the left shows General Actions (Work Orders selected) and Object Actions (Asset). The Work Order Actions panel on the right shows one row configured with the Fast Create WO action and the Draw New Point geometry type.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/mfs_native_gis_create_map_actions_dialog.png)
4. To assign general actions, under **General Actions**, select **Work Orders**.
    1. From **Action**, select an action.
        
        Only actions associated with Flows, Lightning Web Components, or Data Capture flows appear in the list.
    2. From **Geometry Type**, select how the mobile worker captures the location: a point, a line, or a polygon.
        
        - **Draw New Point**: Place a marker in a location.
        - **Draw New Line**: Draw a path by adding multiple points.
        - **Draw New Polygon**: Draw a shape to define a specific area.
    3. To add another action, click **Add Action**. Add actions in the order that you want them to appear to mobile workers on the map.
5. To assign object actions, under **Object Actions**, click **+** to add an object.
    1. Select the object whose records appear on the map.
    2. From **Action**, select an action that's already added to the object's record layout.
    3. From **Geometry Type**, select an option based on what the action does.
        
        - To create a new record at a new location, select a draw option (**Draw New Point**, **Draw New Line**, or **Draw New Polygon**) so the mobile worker captures fresh coordinates.
        - To update an existing object's location, select **Inherit Existing Geometry Type and Location**. The app preloads the object's current geometry, and the mobile worker drags or redraws it to set the new location.
    4. To add another action for the object, click **Add Action**.
    5. Repeat for each object that you want to expose on the map.
6. Click **Save**.
    
    Mobile workers see your general actions when they tap the **+** icon on the map, and they see your object actions when they select an object on the map. The geometry type that you assigned controls how each action captures location data. When a mobile worker completes a map action, the change appears on the map immediately, without waiting for the connector's next sync.

**Considerations**

- An object's actions appear on the map only if the object is included in an active connector or a Related Objects data layer. If you remove the object from both sources, the **Actions** page shows a warning. Either add the object back to one of those sources, or click **Remove** to delete its action assignments.
- Only actions associated with Flows, Lightning Web Components, or Data Capture flows appear in the **Action** list. Quick actions of other types aren't supported.
- For general actions, the order you set on this page is the order mobile workers see on the map. For object actions, the order comes from the mobile actions section of the object's record layout in Object Manager.