Dynamics 365 Business Central: Generate Swiss QR Code without external services/APIs
Business Central includes a standard Swiss QR Code Helper codeunit that allows developers to generate QR codes natively without external APIs. The post demonstrates how to add a page action that generates a Swiss QR code from item data and saves it to the item picture.

post Dynamics 365 Lab
"The barcode functionality lets you convert an alphanumeric value in a report dataset into a barcode on a generated report."
Key points
- The Barcode module in System Application provides 2D barcode support including QR codes since BC 2021 wave 2
- Codeunit 4113 ‘Swiss QR Code Helper’ is the standard Microsoft method for generating Swiss QR codes
- QR codes can be generated directly in AL code using the Swiss QR Code Helper without external services
- Generated QR code images can be imported and stored as item pictures in the database
Quotes
- “The barcode functionality lets you convert an alphanumeric value in a report dataset into a barcode on a generated report.” (Establishes the core barcode capability available in Business Central for standard use cases)
- “If you just want to generate a Swiss QR Code, Microsoft has prepared a standard method for us.” (Highlights that Swiss QR code generation is a supported feature without needing external services)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Attachment capabilities and limitations (preview) — possibly related: names Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: Convert Word (.docx) To HTML (.html) within BC (No control add-in and APIs) — possibly related: both name Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: Convert Word (.docx) To PDF (.pdf) within BC (No control add-in and APIs) — possibly related: both name Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: How to get the page number of a PDF or Word file in AL (Display the page count on Attached Documents and Doc. Attachment List Factbox) — possibly related: both name Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: How to preview Word (.docx) in web client without downloading (No control add-in and APIs) — possibly related: both name Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document. — possibly related: both name Codeunit 4100 “Temp Blob”
- Step by Step Guide to Importing Excel Data into Business Central — possibly related: both name Codeunit 4100 “Temp Blob”
- Using streams in Business Central — possibly related: names Codeunit 4100 “Temp Blob”
Context
- Features: Swiss QR Code generation, 2D barcode support, QR code image creation, Picture import and storage
- Versions: BC19.1, BC18
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.