Display in a Screen Flow
Adding a Barcode to a Screen Flow
The Barcode and QR Code Generator component is exposed as a Flow screen component, so you can show a barcode or QR code inside any guided Screen Flow — for example, on a confirmation screen, a ticket, or a packing step. The component renders from a saved Barcode Config record, just like it does on a Lightning page.
Looking to create a barcode image file — to attach to a record, email, or store as a link — instead of displaying one on a screen? Use the Barcode Flow actions.
Prerequisite: Install the package, assign the Barcode & QR Code Permissions permission set, and create a Barcode Config record. See Assign Permissions and Lightning Experience Setup.
Steps
1. Open Flow Builder
- Go to Setup and search for Flows in the Quick Find box.
- Click New Flow and choose Screen Flow, then click Create.

2. Add a Screen element
- On the canvas, click the + button and add a Screen element.
- Give the screen a label (for example,
Show Barcode).

3. Drag in the Barcode component
- In the screen editor, find the Barcode & QR Code Generator component in the left Components panel (under the custom/managed components).
- Drag it onto the screen.

4. Configure the component properties
With the component selected, set its properties on the right-hand panel:
- Barcode Config Name — enter the exact Name of the Barcode Config record you want to render (for example,
Lead_Email_QR). - recordId — provide the Id of the record whose field value should be encoded. You can reference a Flow variable (for example,
{!recordId}) when the Flow is launched from a record. - componentHeight — optional. The height of the component in pixels (defaults to
200).

5. Save and activate
- Click Save, give the Flow a name, and click Save again.
- Click Activate to make the Flow available.
You can now surface the Flow wherever screen flows are supported — on a Lightning page, an action, or an Experience Cloud site.

Notes
- If the Flow is not launched from a record, make sure you pass a valid
recordIdto the component, otherwise it has no record data to encode. - The Barcode Config Name must match an existing, saved config record exactly. See Lightning Experience Setup to create one.
- The same component can be reused on multiple Flow screens with different config names.