Sunday, 30 August 2020

HOW TO GET THE BARCODE FROM CODE IN D365

 HOW TO GET THE BARCODE FROM CODE IN D365

With the below code you can pass the text and get the corresponsing barcode value in Dynamics 365.

 public str getBarcode(str _barCodeText)
    {
        BarcodeCode128 barcode;

        barcode = Barcode::construct(BarcodeType::Code128);
        barcode.string(true, _barCodeText);
        barcode.encode();

        return barcode.barcodeStr();
    }


THANks,
Vikas Mehta.

No comments:

Post a Comment

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++  Introduction In our previous posts, we explored what Copilot can do o...