community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

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

Yun Zhu · 2025-06-27 · 394 words · about 2 min

"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.

No source states these links: they share an object, a model read them, or a person found the same subject.

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.