Skip to content
Barcode Generator PowerTool app iconBarcode Generator PowerToolFeature

Barcode Developer Functions for Microsoft Dynamics 365 Business Central

A developer who needs barcodes in a custom report should not have to write barcode encoding from scratch. Barcode Generator PowerTool exposes AL (the Business Central development language) functions that generate Data Matrix, QR Code, Code 39, and GS1-128 barcodes for reports you build yourself. This is a completely free app from Insight Works for Business Central.

How Barcode developer functions works in Barcode Generator PowerTool

  1. Add Barcode Generator PowerTool as a dependency in app.json and download symbols.
  2. Declare a temporary IWX Barcode record as a global variable in the report.
  3. In OnAfterGetRecord, call the generation function for the format you need.
  4. Bind the image field in the report layout and set it to Original Size.
  5. Publish the extension and test the printed barcode with a scanner.

Key capabilities

Functions by format

Call GenerateMatrixBarcode, GenerateQRBarcode, Generate39Barcode, or GenerateGS1128Barcode to produce the barcode you need.

Project setup

Add Barcode Generator PowerTool as a dependency in the project's app.json, then download symbols in Visual Studio Code with the AL Language extension.

Temporary record pattern

Declare a temporary IWX Barcode record as a global variable, call the generation function in the OnAfterGetRecord trigger, and bind the record's image field in the report layout.

Size settings

Barcode size is a deliberate choice; the demo doubles the QR Code dot size from 2 to 4 for a more scannable code.

Reference material

The function reference and downloadable sample report source code are in the Insight Works knowledge base.

Details that matter on the floor

Use the current functions

On older on-premises versions of Business Central, extensions built against functions that passed images through the Temp Blob table need to be rebuilt against the IWX Barcode table-based functions. This does not apply to Business Central online.

Image growth direction

A barcode image expands only to the right and down in the layout, so leave space around it.

Who uses Barcode developer functions

Business Central developers

Add barcodes to custom reports and extensions.

Microsoft Partners

Build barcoded reports for clients without writing encoding logic.

Questions about Barcode developer functions

How do I generate a QR code in AL for Business Central?

Add Barcode Generator PowerTool as a dependency, declare a temporary IWX Barcode record, call GenerateQRBarcode in OnAfterGetRecord, and bind the image field in the report layout.

Which developer tools do I need?

Visual Studio Code with the AL Language extension, and Barcode Generator PowerTool as a dependency in app.json.

Where is the function reference?

In the Insight Works knowledge base, along with sample report source code.

My older on-premises extension stopped working. Why?

Older functions passed barcode images through the Temp Blob table, which later Business Central versions removed. This affects older on-premises versions only, not Business Central online. Rebuild the extension against the IWX Barcode table-based functions.

Barcode Generator PowerTool app icon

Part of Barcode Generator PowerTool

Add 1D and 2D barcodes to your Microsoft Dynamics 365 Business Central reports.

Have a question about Barcode developer functions?

Send us a note and the Barcode Generator PowerTool team will reply by email. Ready to plan a rollout? Contact your Microsoft Partner.

Ask a product question

Product Questions