From Josh Dayment – Barcode Scanning Component for Flow

The Barcode Scanner component provides you a way to scan various types of Barcodes using a flow and the Salesforce Mobile App, Mobile Publisher for Salesforce, or Mobile Publisher for Communities in Flow screens. It allows you to take the data stored in that barcode and return the variable to be used later downstream in your flow or instantly show Salesforce Data to users in the app all from scanning a barcode. This component uses the existing BarcodeScanner API.

In my example use case I am using it for contactless check in at a job fair. We have a custom object called Registration where I have a QR Code I generated using an formula field using the open API from (ex: IMAGE(“×150&data=”&Id ,”Scan QR code”) I am using the recordId from my Registration that is passed through into the output value of the component.

Flow Setup is really simple right now there are no inputs the barcode is what provides your data as a string to the flow itself. The output variable of scannedBarcode is a string variable that can be used in your flow.

See the scan in action below.


Version 1.0.0 unlocked 11/7

View Source