Skip to main content
Die Trailblazer Community ist jetzt auf Slack! Erhalten Sie schneller Antworten, tauschen Sie sich mit anderen Trailblazern aus und lernen Sie von Experten. Community beitreten

Validate and Scale Your Data Capture Flow

Learning Objectives

After completing this unit, you’ll be able to:

  • Add Create Records and Update Records elements to a Data Capture flow.
  • Link a Data Capture flow to a work order.
  • Describe advanced Data Capture features such as conditional visibility and offline access.

Give Your Flow Something to Do

Your flow collects answers, but they don’t go anywhere yet. The Create Records and Update Records elements turn a form into a flow that saves data. Create Records uses what a worker enters to create a new record, such as the asset. Update Records changes an existing record, such as a work order’s status.

Think of the screens as the conversation with the mobile worker, and these elements as what saves it. Start by adding a Create Records element:

Create Records Element

  1. In Setup, open Flows, and then open the Asset Installation Checklist flow if it’s not already open.
  2. Select Add Element below Work Order Info and search for and select the Create Records element.
  3. For Label, enter Create Asset.
  4. In the How to set record field values picklist, select Manually.
  1. For Object, select Asset.
  2. In the Values lookup, select Asset Info, then select Asset Name, and select Value. This maps the input captured in the form to the corresponding field on the Asset object.
  3. Select Add Field, and use the Field lookup to search for and select Serial Number.
  4. In the corresponding Values lookup, select Asset Info, then select Asset Serial Number, and select Value.
  5. Select Add Field again, and use the Field lookup to search for and select Install Date.
  6. In the corresponding Values lookup, select Asset Info, then select Asset Installation Date, and select Value.
  7. Select Add Field again, and use the Field lookup to search for and select Account ID.
  8. In the corresponding Values lookup, select Work Order from Get Work Order, then select the Account ID field with the text icon . This associates the created asset record with the account of the client.

Field Values Section mapped with the values input in the Asset Info screen element.

Update Records Element

A new record is useful, but sometimes captured information should update an existing record instead. Here, the work order should show that the installation is complete. Here’s how the flow does that.

  1. SelectAdd Element to search for and select the Update Records element.
  2. For Label, enter Update Work Order.
  3. Select the Specify conditions to identify records, and set fields individually option.
  4. For Object, select Work Order.
  5. In the Filter, use the lookups to enter the following values:
    • Field: Work Order ID
    • Operator: Equals
    • Value: parentRecordId
  6. In the Set Field Values section, use the Field lookup to search for and select Asset ID.
  7. In the corresponding Values lookup, select AssetId from Create Asset.
  8. Select Add Field, and use the Field lookup to search for and select Description.
  9. In the corresponding Values lookup, select Work Order Info, then select Work Order Description, and select Value.
  10. Select Add Field again, and use the Field lookup to search for and select Status.
  11. In the corresponding Values lookup, select Work Order Info, then select Work Order Status, and select Selected Picklist Values.

Create Records element with the Asset Info fields mapped to Asset fields.

  1. Select Save As New Version.
  2. Select Activate.
  3. Select the back arrow to exit Flow Builder.

Your mobile workers don’t open Flow Builder to fill out a form. They work in the field, looking at the Work Order on their phone or tablet. To help them find the form, add the Forms related list to the work order page layout, and then link your flow to a work order.

  1. Select Setup, then select Setup.
  2. In the Object Manager tab, search for and select Work Order.
  3. In the Page Layouts tab, select System Administrator Work Order Layout.
  4. Select Related Lists, and drag the Forms element before Work Order Line Items on the page layout.
  5. Save your changes, then select Save in the pop-up window.

Work Order page layout with the Forms related list above Work Order Line Items.

The Forms related list shows any form linked to a work order, on desktop and in the Field Service mobile app. Next, link your flow to a work order:

Note

These steps link a work order to a Data Capture form manually, so you can attach an installation form only to installation work orders. To automate this, check out Triggers for Autolaunched Flows.

  1. SelectApp Launcher, then search for and select Field Service.
  2. Change the view from Recently Viewed to All Work Orders.
  1. In the Work Orders tab, search for and select the Work Order number 00000001, titled Product Installation.
  2. In the Related tab, in the Forms section, select the New button.
  3. For Name, enter Asset Installation Checklist.
  4. In the Action Definition lookup, select the Asset Installation Checklist flow you created.
  5. Save your changes.

Your form now appears on work order 00000001, ready for a mobile worker to fill out.

Explore Advanced Data Capture Features

You built a Data Capture form and linked it to a work order, which already beats a paper-based process. Data Capture also has advanced features that make forms more useful in the field and easier to maintain.

  • Conditional visibility on screen components: Show or hide individual components, such as a field, section, or image, based on an earlier answer. One screen can do the work of several.
  • Voice to form: It’s hard to type on a small screen in a crawl space or on a ladder. Voice to form lets mobile workers fill out text fields by speaking into the device’s microphone.
  • Offline access: Set up a briefcase in Briefcase Builder, and mobile workers can open and fill out a form without a connection. Autosave keeps their work if the connection drops, and the form syncs when the device reconnects.
  • Brand colors: Apply your organization’s brand colors so the form looks like a natural part of your company’s tools.

Wrap Up

Think back to the mobile worker juggling paper forms, scribbled notes, and separate apps. In this badge, you built a Data Capture flow, added elements that create and update Salesforce records, and linked the flow to a work order so workers can launch it from the record. You also learned about advanced features, such as offline access and voice to form, that help Data Capture fit more of your team’s work. Now you’re ready to build Data Capture forms that fit the way your team works!

Resources

Teilen Sie Ihr Trailhead-Feedback über die Salesforce-Hilfe.

Wir würden uns sehr freuen, von Ihren Erfahrungen mit Trailhead zu hören: Sie können jetzt jederzeit über die Salesforce-Hilfe auf das neue Feedback-Formular zugreifen.

Weitere Infos Weiter zu "Feedback teilen"