---
schema_version: "1"
id: 4710e345a845cb000d8b2d7c812d956d8575740b476549b9fa25d0a44ec47552
title: Add Data Capture Flows to the Field Service Mobile App
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/mfs_data_capture_add_flows.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.mfs_data_capture_add_flows.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 45fb6b981e86f3f62dc5e3c62f92c6bc8aa5bef7899014855f013f91b8be5928
description: After creating Data Capture flows, define how to show them in the Field Service mobile app by adding a Forms tab to the parent record, or defining the flow as a quick action.
products:
  - Field Service
release: "264"
---
# Add Data Capture Flows to the Field Service Mobile App

After creating Data Capture flows, define how to show them in the Field Service mobile app by adding a Forms tab to the parent record, or defining the flow as a quick action.

### Required Editions

<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 in Enterprise, Unlimited, and Developer 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="d82123e63">User Permissions Needed</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d82123e63 ">To test Data Capture flows in the mobile app:</td>

              <td class="slds-cell-wrap" style="vertical-align:top;" headers="d82123e63 ">
                <p style="margin-bottom:0;">Lightning SDK for Field Service Mobile. See <a href="https://help.salesforce.com/s/articleView?id=service.mfs_lightning_data_service.htm&amp;release=264.0.0&amp;type=5" title="Lightning Data Service is an updated technology within the Field Service mobile app. Together with Lightning Web Components (LWCs), you get a powerful way to customize the app and use its latest features, all through using a simple setup."><u>Move to Lightning Data Service for Field Service
                      Mobile</u></a>.</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d82123e63 ">To create and delete Data Capture flows and prime subflows for offline work:</td>

              <td class="slds-cell-wrap" style="vertical-align:top;" headers="d82123e63 ">Manage Flows</td>

            </tr>
            <tr class="">
              <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d82123e63 ">To create quick actions and add them to page layouts:</td>

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

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

## Add Flows to the Forms and Related Tabs in the Field Service Mobile App

Mobile workers can access Data Capture flows from the Work Order Overview page, or from a service appointment, work order line item, timesheet, or service resource.

1. By default, the page layout for work orders, work order line items, and service appointments contains a Forms section. If you create your own page layout, add a Forms section.
    1. From the object management settings for work orders, work order line items, or service appointments, go to **Page Layouts**.
    2. Open the page layout where you want the tab to appear.
    3. Click **Related Lists**, and drag Forms to the Related Lists section.
        
        ![Page Layout](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/dc_page_layout.png)
2. Add the flow you created to the Forms section.
    1. From the App Launcher, find and select **Field Service**.
    2. Select **Work Orders** or **Service Appointments**, or find and select **Work Order Line Items**.
    3. Open the relevant record and select **Related**.
    4. Click **New** in the Forms section.
        
        ![Page Layout New Form](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/dc_sa_new_form1.png)
    5. Enter a name and define the parent record.
    6. For Action Definition, enter the name of the flow you created.
        
        ![New Form](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/dc_new_form1.png)
    7. Save your changes.
        
        ![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
        
        You can automate this procedure by creating a record-triggered flow that automatically associates your form to a parent record when that record is created. See [Triggers for Autolaunched Flows](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_trigger.htm&language=en_US).
3. Test the form in the Field Service mobile app.
    
    Make sure that the mobile app has the latest version installed.
    
    1. Open the record where you added the form.
    2. If you added the form to a work order, from the Work Order Overview page select **Forms**.
    3. If you added the form to a service appointment or work order line item, select **Related**.
    4. Complete the form.

## Add Flows to the Action Launcher in the Field Service Mobile App

Define flows as actions so your mobile workers can quickly open them from the action launcher when viewing service appointments, work orders, work order line items, assets, or custom objects.

To make sure custom objects are available to mobile workers when working offline, add the object to the [briefcase](https://help.salesforce.com/s/articleView?id=platform.briefcase_builder_overview.htm&language=en_US).

1. By default, the page layout for work orders, work order line items, and service appointments contains a Forms section. If you create your own page layout, add a Forms section.
    1. From the object management settings for work order, work order line item, service appointment, asset, or custom object, go to **Buttons, Links and Actions**.
    2. Click **New Action**.
    3. For Action Type, select **Flow**.
    4. Select the flow that you created and enter a name.
    5. Save your changes.
        
        ![New Action](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/dc_new_action.png)
2. Define the action as a quick action.
    1. Select **Page Layouts**, and open the page layout you want to add the new action to.
    2. Click **Mobile & Lightning Actions**, and drag the action you created to Salesforce Mobile and Lightning Experience Actions.
        
        ![Page Layout Lightning](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/dc_page_layout_lightning.png)
3. Test the form in the Field Service mobile app.
    
    Make sure that the mobile app has the latest version installed.
    
    1. Open the record where you added the quick action.
    2. Tap the action in the action launcher.
    3. Complete the form.

## Launch Data Capture Flows from External Apps with Cleared Fields

Add a parameter to deep links that launch Data Capture forms so that technicians see a blank form each time.

When launching a Data Capture form from an external app via a deep link, you can ensure that the form opens with all fields cleared by including the fsl\_\_restart=true parameter. This parameter is useful when you want technicians to start with a blank form for each session, rather than having previously entered values persist from the prior launch.

Add the fsl\_\_restart=true parameter to the deep link URL that launches your Data Capture form from the external app.

Example deep link with the parameter:

```
https://{orgURL}/lightning/n/{flowName}?fsl__restart=true&recordId={recordId}
```

Replace {orgURL} with your Salesforce org URL, {flowName} with the API name of your Data Capture flow, and {recordId} with the ID of the record associated with the form.

When technicians follow the deep link with this parameter, the form opens without values from the previous session.

## Add Flows to Work Steps

Define flows to open from a work step when the mobile worker completes the step.

There are two ways to add flows to work steps:

- Manually add the flow to individual work steps, associate the work step with a work plan, and add the plan to a work order.
- Create a work plan selection rule, a work plan template, and a work step template that contains the flow. When a work order meets certain conditions, the work plan, work step, and flow, are automatically related to the work order. The rules and templates are reusable.

### Prerequisites

Define the security level for work steps.

1. From Setup, open the Object Manager. Then, find and select **Work Step**.
2. From Fields & Relationships, select **Process Type**.
3. Click **Set Field-Level Security**.
4. Select **Visible** for the relevant user profiles.
5. Save your changes.
6. Click **View Field Accessibility**.
7. From the dropdown, select **Process Type**.
8. Next to the relevant profile, click **Hidden**.
9. Select **Visible**, and then click **Save**.
10. Log out of the mobile app, and then log in again.

### Add Flows to Work Steps Manually

1. In Field Service, select **Work Orders** and open the work order where you want the flow to appear.
2. Create a work plan.
    1. Select the **Related** tab.
    2. Scroll to Work Plans and click **New**.
    3. Enter a name.
    4. Save the work plan.
3. Add a step to the work plan.
    1. Open the work plan.
    2. Select the **Related** tab.
    3. Scroll to Work Steps and click **New**.
    4. Select the work plan you created from the Work Plan list.
    5. From the Action Definition list, select the flow you created.
    6. Save the work step.
4. Test the form in the Field Service mobile app.
    1. Assign the work order to the mobile worker.
    2. Log into the mobile app as the mobile worker and refresh it.
    3. Open the work order and select **Work Plans**.
    4. Locate the work plan and work step that you created.
    5. From the action menu, select **Complete** and make sure that the flow opens.

### Add Flows to Work Steps By Using Selection Rules and Templates

1. In Setup, find and select **Work Plans**.
2. Select **Generate Work Plans and Work Steps from templates and selection rules**.
3. Create a [work plan template](https://help.salesforce.com/s/articleView?id=service.fs_work_plans_manage_work_step_templates.htm&release=264.0.0&type=5 "Manage the work plan template entries that store the work step templates associated with your work plan template."). Make sure that you select **Active**.
    
    ![Work plan template](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/fs_work_plans_new_work_plan_template.png)
4. Open the template that you created and select **Related**.
5. From Work Plan Template Entries, select **New**. Each entry you create becomes a work step.
6. Create a new work step template.
    
    1. From Work Step Template, select **New Work Step Template**
    2. For Action Definition, select the flow you created.
    3. Select **Active**.
    4. Save the work step template.
    
    ![Work Step Template](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/fs_work_plans_new_work_step_template.png)
7. Create a work plan selection rule to relate to the work plan template. This rule defines when to use the template. See [Create Work Plan Selection Rules](https://help.salesforce.com/s/articleView?id=service.fs_work_plans_create_selection_rules.htm&release=264.0.0&type=5 "Add selection rules to automate how work plans are assigned to work orders.").
    
    1. From the App Launcher, find and select **Work Plan Selection Rule**.
    2. Click **New**.
    3. Select the Work Plan template that you created.
    4. Select **Active**.
    5. Define the conditions to activate the template. For example, to activate the template for a work order containing a specific asset, add the asset to the Asset field.
    6. Save the rule.
    
    ![Work Selection Rule](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/fs_work_plans_new_selection_rule_standard_screen.png)
8. In Field Service, select **Work Orders** and open the work order where you want the flow to appear.
9. Click **Generate Work Plans**. The template is added to the work plans assigned to the work order.
10. Test the form in the Field Service mobile app.
    1. Assign the work order to the mobile worker.
    2. Log into the mobile app as the mobile worker and refresh it.
    3. Open the work order and select **Work Plans**.
    4. Locate the work plan and work step that you created.
    5. From the action menu, select **Complete** and make sure that the flow opens.