Automation Helpers

Barcode Generation Script

Copy the free Airtable script to generate barcodes directly in your base. Simple, fast, and ready to use — no paid tools required.

Copy the script below paste it into your Run Script step in Airtable.

let inputConfig = input.config();

let recordId = inputConfig.recordId;
let barcodeValue = encodeURIComponent(inputConfig.barcodeValue);

let barcodeImageUrl = `https://bwipjs-api.metafloor.com/?bcid=code128&text=${barcodeValue}&includetext`;

let table = base.getTable("Products"); // <-- replace with your table name

await table.updateRecordAsync(recordId, {
  "Barcode Image": [{ url: barcodeImageUrl, filename: `${barcodeValue}.png` }]
});

Make sure to leave the quotes, but insert the name of the table you are using.