How to scan barcodes in Salesforce with Flow
Gimbal Barcode includes a Flow component that enables barcode scanning within Salesforce running on a desktop or laptop computer, or a mobile device using the Salesforce Mobile App. In order to add barcode scanning to any screen flow, simply drag the component named "Gimbal Barcode Scanner for Flow" onto the canvas.
Scan barcodes in Salesforce using Flow (2 minutes)
Common use cases for barcode scanning within Salesforce include Inventory Control, Asset Management, Attendance Tracking, Event Management, Process Control (manufacturing, diagnostic labs, etc.), and Order Fulfillment.
Not all barcode scanning use cases are appropriate for Flow. Some barcode scanning use cases require the creation of a custom Lightning Component. Our implementation team can help you create a custom Lightning Component designed for your specific use case. Contact us at barcode@gimballogic.com.
Example: a screen flow that updates the Serial Number of an Asset
Here are the detailed steps for creating a sample screen flow whose purpose is to update the Serial Number field of an Asset. The overall structure of the flow is: Start (Screen Flow), Screen: Scan Barcode, Update Record: Asset, End.

The finished flow: Start, Scan Barcode screen, Update Record, End.
Step 1: Create Flow Variables
Create two flow variables:
| Variable Name | Data Type | Availability Outside the Flow |
|---|---|---|
| recordId | Text | Available for Input |
| barcode | Text | none |

The two variables: recordId (available for input) and barcode.
Step 2: Create a Screen and add the "Scanner for Flow" Component
- Drag the component onto the canvas from the Components menu in the left sidebar. It is listed under Custom as "Gimbal Barcode Scanner for Flow" (API Name in the example: Gimbal_Barcode_Scanner).
- Specify the barcode variable in the Advanced sub-menu. In the example, "Manually assign variables" is checked, and under "Store Output Values to Select Variables", Barcode Value is set to
{!barcode}.

The scanner component on the screen, with the barcode variable set under Advanced.
Step 3: Create the Update Records element, to update the Asset
In the example, the Update Records element is set as follows:
| Setting | Value |
|---|---|
| Label | Update Record: Asset |
| How to Find Records to Update and Set Their Values | Specify conditions to identify records, and set fields individually |
| Object | Asset |
| Condition Requirements to Update Records | All Conditions Are Met (AND) |
| Condition | Id Equals recordId |
| Set Field Values for the Asset Records | SerialNumber = barcode |

The Update Records element, set up as in the table above.
After completing steps 1-3
- Save and activate the new Flow.
- Create an Action button on the Asset object, to launch the Flow.
- Add the Action button to the page layout for the Asset object.
What the user sees
When the flow is launched in the desktop environment, the user will be prompted to scan a barcode using a peripheral (e.g. USB, Bluetooth) scanner that is connected to the computer.

On desktop, the flow asks for a scan from a USB or Bluetooth scanner.
When the same flow is launched in the mobile environment, the user will be prompted to scan a barcode using the camera of the mobile device.
Related pages: Gimbal Barcode Scanner for Flow | Create a barcode with Flow or Omniscript | QR Codes, Simplified, and Fully Native in Salesforce
Start here | Full configuration guide (PDF, version 8.14) | Questions: barcode@gimballogic.com