community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

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

Yun Zhu · 2025-05-20 · 1,516 words · about 7 min

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

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

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.