Business Central labels with ZPL
Generate Zebra labels from Dynamics 365 Business Central: an AL codeunit posts the data to the OpenZPL API and receives ZPL or a PDF.
Your file is downloading.
Free, with no daily limit. A free account also saves your designs and gives you an API key.
How it fits
Business Central can call web services from AL, so the layout can live in a design you edit without a new extension version.
Example
Content.WriteFrom('{"data":{"sku":"' + Item."No." + '"}}');
Client.DefaultRequestHeaders.Add('X-API-Key', ApiKey);
Client.DefaultRequestHeaders.Add('Accept', 'text/plain');
Client.Post('https://api.openzpl.com/v1/templates/d123', Content, Response);
Setting it up
Design the label in the designer with {{variables}}, save it, and copy its ID from the dashboard. Create an API key, then send your data to POST /v1/templates/{id}. The API docs have the details.
Questions
Does Business Central print directly to a Zebra?
In the cloud it needs a bridge to your local network. The [OpenZPL print agent](/print-agent/) does that.
Do I need to install anything?
Not to render labels: it's an HTTP API. To send them to a printer on your network, run the [print agent](/print-agent/) next to it.
What does it cost?
A free key allows 20 labels a day. Pro is $29 a month for 100,000 labels, and Business $99 for 1,000,000. See [pricing](/pricing/).
Related
Need something we don't have yet?
A connector for your system, a label format or a new tool: tell us what you use and we'll look at building it.