Dynamics 365 Integration

Generate high-quality barcodes directly within your D365 environment using our secure Cloud API.


Auth: OAuth2 Client Credentials Required Scope: barcode:generate
1

Obtain Your Credentials

After your purchase, you received a Client ID and a Client Secret via email. When requesting a token, ensure you include the barcode:generate scope.

Auth Endpoint: POST https://www.barcodesoft.com/api/auth/token
2

Configure Power Automate (Recommended)

The easiest way to integrate with Dynamics 365 is via a Power Automate Flow. This allows you to automate barcode generation across Dataverse entities.

  • Trigger: When a row is added or modified (Dataverse).
  • Action: HTTP Request to /api/auth/token to get the Access Token.
  • Action: HTTP Request to /barcode/v1/qrcode with the Bearer token in the Header.
3

AL Code Implementation (Business Central)

Use the following snippet to handle authentication and barcode generation within Business Central:

// 1. Get OAuth Token with Scope
HttpClient.DefaultRequestHeaders.Add('Accept', 'application/json');
Content.WriteFrom('{"grant_type":"client_credentials","client_id":"YOUR_ID","client_secret":"YOUR_SECRET","scope":"barcode:generate"}');
if HttpClient.Post('https://www.barcodesoft.com/api/auth/token', Content, Response) then begin
    Response.Content.ReadAs(ResponseText);
end;

HttpClient.DefaultRequestHeaders.Add('Authorization', StrSubstNo('Bearer %1', AccessToken));
if HttpClient.Get('https://www.barcodesoft.com/barcode/v1/qrcode/?data=Testing&isgs1=false&width=360&height=150&imageformat=svg', Response) then begin
end;
4

Display the Barcode

The API returns an image stream (PNG/JPG/SVG). In D365 Sales, store the response in an Image column. In Business Central, use TempBlob to stream the data into a Media or Blob field.


Instant Access to Barcodesoft Cloud

A subscription provides unlimited access to GS1-128, QR Code, DataMatrix, and Code 128 generation for your Dynamics 365 integration. Credentials delivered immediately via email[cite: 3, 4].

Instant Setup OAuth 2.0 Secure[cite: 3, 4] 600 DPI Ready[cite: 3, 4]

Need technical assistance?

Our engineering team can help with custom AL, C#, or PowerPlatform implementations.

← Back to Cloud Barcode API Main Page