Friday, September 4, 2020

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();
    }

No comments:

Post a Comment