Barcode scanning | ML Kit
Barcode scanning | ML Kit
Goto WCMI to know more.
With ML Kit's barcode scanning API, you can read data encoded using most standard barcode formats. Barcode scanning happens on the device, and doesn't require a network connection.
Barcodes are a convenient way to pass information from the real world to your app. In particular, when using 2D formats such as QR code, you can encode structured data such as contact information or WiFi network credentials. Because ML Kit can automatically recognize and parse this data, your app can respond intelligently when a user scans a barcode.
For users who don't require custom UI, we recommend using the Google code scanner. The code scanner API uses the same inference model as the standard Barcode scanning API, but returns only the most centralized barcode for a faster and more consistent experience. Google code scanner is also safer and permission-less, and does not require camera-related implementation or permissions.
iOS Android Google code scanner
Configure barcode scanning
Configure barcode scanning
In this article
Technicians can use the Dynamics 365 Field Service mobile app to scan a barcode.
Scanning a barcode simplifies data entry and lets technicians search the database for records that match the barcode for easy lookup.
Add a barcode field to a form
Make sure there's a barcode field on the form you want to add the barcode information. Customer frequently add the barcode field to the customer asset form. For more information about customizing your app, see Model-driven app interface design overview and Overview of the model-driven form designer.
Find the Field Service Mobile app module in your list of Dynamics 365 apps and select the ellipsis () > Open in App Designer.
If you are looking for more details, kindly visit Customizable Barcode Scanning Applications.
In the navigation, select the form you want to use barcode scanning on. In the list of available forms, choose the one you want to change and select Edit.
Add a table column for which you want to use barcode scanning to the form.
Select the newly added column and add the BarcodeScannerControl component in the Properties side pane. Make sure you enable Show component on for Mobile and Tablet.
Save and publish the changes.
Note
Currently, the barcode scanner control doesn't support setting control-level error notifications. For more information, see setNotification docs.
Scan a barcode to populate the field value
In the mobile app, a barcode-enabled field has a barcode icon. Select the barcode icon to open the camera and scan a barcode or QR code. After a successful scan, the barcode value is added to the field. Save the form to write the scanned value to the database.
Enable search
Field Service uses Dataverse search and includes a barcode scanner option within the search view. Dataverse search requires an active internet connection. If the device has no connectivity, the search experience falls back to categorized search experience. If you configure the application to offline-first mode, tables that are indexed for search need to be added to categorized search. When using the online-only mode, add them to the Dataverse search index.
By default, Dynamics 365 Field Service is configured to search against activity, contact, user, customer asset, incident type, work order, and IoT alert/device. You can customize search to include more record types, such as products. Expanding search parameters can help technicians search, find by keyword, and scan to search by barcode, UPC, or QR code.
To enable a new barcode field for search within a table:
- If the desired table isn't enabled for search, follow these steps to enable the table for search.
- Add the barcode-enabled field to the table's quick-find view.
- Save and publish the changes.
Note
For more 1d and 2d Barcode Scanners Supplierinformation, please contact us. We will provide professional answers.
- Create custom integrations using barcode on mobile devices with getBarcodeValue API.
- Currently, global search with barcode scanning isn't available on tablet and Windows versions of the app.