Barcode scanning and global search
An HVAC technician can encounter several similar units at the same customer site. Scanning an equipment label helps them capture an identifier or find the corresponding customer asset without typing the value. They still need to verify that the record matches the equipment they service.
Field Service supports two distinct barcode workflows. Configure the one that matches the technician's task rather than treating them as a single setup process.
Choose the barcode workflow
- Capture a value on a form: A barcode scanner component reads the label and enters its value in a column, such as Asset Tag. The technician saves the record to keep the value.
- Search for a record: The scanner in global search uses the scanned value to find matching records in the configured search scope.
Adding a scanner to a form doesn't automatically make the column searchable. Likewise, enabling search doesn't add a scanner component to a form. For example, a technician can capture a new asset tag on a form without first configuring global search for that column.
Note
Global search with barcode scanning isn't available in the tablet or Windows versions of the app. Form-based scanning is configured separately. Test the required workflow on the devices your technicians use.
Add the scanner to a form
Use the modern Power Apps form designer to add the BarcodeScannerControl component. You don't need to switch to the classic form editor.
For this example, use the Asset Tag text column on the customer asset form. A text column preserves identifiers that contain letters or leading zeros. Make sure the intended column exists and the technician has permission to update it.
- In Power Apps, select the Field Service environment and open Field Service Mobile for editing.
- Find the Customer Asset table and the form used by technicians. Open that form in the form designer.
- Add Asset Tag to the appropriate section if it isn't already present.
- Select the column on the form. In the Properties pane, expand Components and select Component to add a component.
- Select BarcodeScannerControl and associate it with the Asset Tag column.
- Under Show component on, enable Mobile and Tablet, then select Done.
- Save and publish the form. If you also change which forms are available in the app, publish those app changes.
On a supported mobile device, open the form and use the scanner beside the configured field. Allow camera access when prompted, scan the label, and review the captured value before saving.
For offline use, include the required table and records in the offline profile. Scanning a value doesn't download a record or make related data available offline.
Configure search for scanned identifiers
When technicians need to find an existing asset, the relevant table and identifier column must participate in search. Field Service includes customer assets among its default searchable record types, but you still need to check the configuration for the identifier you use.
Connectivity and app mode affect the search experience:
- Dataverse search: Requires an active internet connection and uses the tables and columns configured in the Dataverse search index.
- Offline search: Uses categorized search over data available on the device. Configure the tables for categorized search and include the required records in the offline profile. A record outside the downloaded dataset can't appear in an offline search.
For an offline-first app, configure the categorized search scope for the tables technicians need. For an online-only app, configure the Dataverse search index. Don't assume that adding a table to one search configuration also configures the other.
For categorized search, an administrator uses Select entities for Categorized Search on the General tab of System Settings. Select Select, include Customer Asset in the search tables, and save the selection. This environment-level table list is separate from the Dataverse search index.
To make the asset tag searchable:
- Confirm that Customer Asset is included in the mobile app and in the search scope for the mode your technicians use.
- In Power Apps, open the table's Views and select its Quick Find view.
- Add Asset Tag to the Find columns. Adding it only as a displayed view column doesn't define it as a field to search.
- Review the Quick Find filters so they include the assets technicians need.
- Save and publish the changes.
For Dataverse search, administrators manage table inclusion from a solution's Overview page by selecting Manage search index in the Dataverse search pane. Search index changes can take time to appear, so allow indexing to complete before judging the result.
For more information, see Configure Dataverse search for your environment and System Settings General tab. For the search experience, see Use quick find search.
Test capture and search separately
Use a known asset tag and a technician account for these checks:
- Form entry: Scan the label into Asset Tag, verify the value, save, and reopen the record to confirm that the value is stored.
- Online search: On a supported phone, scan the same label from global search and confirm that the intended asset appears. Check the asset details, not just the presence of a result.
- Offline search: Complete an offline sync, disconnect the phone, and repeat the search for an asset included in the profile.
If form entry works but search returns no result, check the search scope, Quick Find columns and filters, indexing where applicable, and offline data availability. If a scan captures an unexpected value, inspect the label and the field value before changing search settings. Barcode scanning reduces manual entry; it doesn't validate that the label identifies the correct asset.
For more information, see Configure barcode scanning.