Dynamics 365 Business Central: Generate barcode through external services/APIs (Telepen, Swiss QR Code, QR codes with colors, images or text……)
Business Central includes built-in barcode functionality via the System Application, supporting 1D and 2D barcodes in reports. When custom formatting like colors, sizes, or embedded images is needed, external APIs like QuickChart can generate QR codes and other barcode types through HTTP requests in AL code.

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 standard Barcode module in the System Application adds barcodes to reports: one-dimensional barcodes from BC18 and 2D barcode fonts such as QR, Aztec and Data Matrix from BC19.1.
- The standard module cannot change size, colors, center images or captions, so the post calls the QuickChart API instead.
- QuickChart QR parameters cover format, margin, size, dark and light colors, error correction level, a center image and caption text.
- A page extension on Item Card uses HttpClient to request the image and import it into the item Picture field.
- A second example lets the user choose QR Code, Data Matrix, Aztec, Telepen or Swiss QR Code. Some external services are paid.
Quotes
- “The barcode functionality lets you convert an alphanumeric value in a report dataset into a barcode on a generated report.” (Establishes the standard barcode capability baseline in Business Central before discussing external API enhancements)
- “If the customer requires a QR code in a special format, such as a special size, background color, etc., the standard cannot do it.” (Explains the limitation of built-in functionality and the use case for external APIs)
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.
- page 30 “Item Card”
- other “Barcode module”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Allow Over Receipts of Products — possibly related: both name Page 30 “Item Card”
- Business Central 2025 wave 2 (BC27): Add more fields and columns by personalizing pages — possibly related: both name Page 30 “Item Card”
- Business Central 2026 release wave 1 (BC28): Calculate excise taxes — possibly related: both name Page 30 “Item Card”
- Business Central 2026 release wave 1 (BC28): Calculate withholding taxes for vendors (Withholding Tax) — possibly related: both name Page 30 “Item Card”
- Business Central 2026 release wave 1 (BC28): Define item attributes for item variants — possibly related: both name Page 30 “Item Card”
- Business Central 2026 release wave 1 (BC28): Get item insights with advanced KPIs and Summary (new Item Statistics page) — possibly related: both name Page 30 “Item Card”
- Define Item Attributes for Item Variants — possibly related: both name Page 30 “Item Card”
- Directions EMEA 2023 Keynote: Business Central saves time for consultants and power users — possibly related: both name Page 30 “Item Card”
- Dynamics 365 Business Central – Some Considerations when Changing Standard Cost on an Item Card — possibly related: both name Page 30 “Item Card”
- Dynamics 365 Business Central: Automatically add extended text for items, general ledger accounts, and resources (Automatic Ext. Texts) — possibly related: both name Page 30 “Item Card”
Heads up
- gotcha: “please note that some of these external services are not completely free, and you need to pay attention to the instructions”
Context
- Features: Barcode generation via external APIs, QR code customization (colors, margins, size), Multiple barcode type support, Center image embedding in QR codes, Barcode caption text, HTTP request handling in AL, Image import to item records, Barcode format selection (PNG, SVG, base64)
- Versions: BC18, BC19.1
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.