How-to Create Barcode Labels
Last updated
Last updated
Creating pages of barcode labels for printing is a great way to consolidate your asset management workflow into ServiceNow, printing custom labels for laptops and other devices in your organization.
See below for a step-by-step example of how to create your own barcode labels.
Ensure you have Yansa's app installed
Navigate to Barcode & QR Code Generator -> Barcode Generators and click 'New' to create a new Barcode Generator.
After setting the basic settings of the Barcode Generator and saving the record, you'll need to create a new Barcode Part via the related list at bottom.
When creating a Barcode Generator for use in a PDF Template, we recommend making it as simple as possible - a single Barcode Part that is the barcode or QR code component with no added borders or padding. You can add additional text/HTML content within your PDF Template.
Ensure you have Yansa's PDF Generator app installed
Navigate to Yansa PDF Generator -> Label Templates and click 'New' to create a new Label Template.
The 'Test record' table in your Barcode Generator and the 'Source table' in your HTML to PDF Merge Template or Label Template should always be the same when using a Barcode Generator within a PDF template. This insures that dynamic data in both the Barcode Generator and PDF template will be pulled from the correct source.
After setting the basic settings of the Label Template and saving the record, you'll need to create new Merge Maps via the related list at bottom. For the QR/Barcode content, that Merge Map will look similar to the example below. Note how the Merge Map is embedded in the 'Template HTML' of the Label Template above.
Use the Generate PDF button in the Label Template header to create your labels. First, you'll see the 'un-merged' version of your labels.
To make it simple for your users to generate PDFs where & when they need, you can customize & place the Generate PDF button & UI on any form.
Also, you can automate the generation of PDFs via Flow Action or Script.
Click Next and select a Data Source to merge data into your labels.
Generating barcodes & QR codes server-side takes time! When generating large numbers of labels, it can take several seconds or minutes to complete. It may be helpful to create multiple separate Data Sources to break the process into parts.
Future label generation runs for the same data source will complete much faster due to caching.
Finally, click next and save/attach your label PDF to your desired location!