
Hey guys. In this article, I will show you how to write the code to create your own QR code and Bar code in Dynamics 365 Finance and Operation using x++ code.
I believe many of you are struggling with this problem and may not be getting the right one at right time. So, this gift is for you.
What you need to do?

- Create two simple classes, one is for QR code creation helper and other is for Bar code generation helper and paste the below code in it.
- Now, you can use these classes where you need to add the Bar code or QR code by simply calling it.
Bar code
///
public class AA_CreateBarcodeHelper
{
///
/// Barcode creation
///
/// Pass the text that you want to scan while scanning Bar Code
/// Barcode
public static BarCodeString showBarcode(str barcodeText)
{
Barcode barcode;
barcode = Barcode::construct(BarcodeType::Code39);
barcode.string(true, barcodeText);
barcode.encode();
return barcode.barcodeStr();
}
}
>

QR code
///
public class AA_CreateQrCodeHelper
{
///
/// Generate QR code
///
/// Pass the text that you want to scan while scanning QR Code
/// Bitmap
public static Bitmap generateQRCodeFromBase64(str qrCodeText)
{
Bitmap qrCode;
EFDocQRCode_BR generateQR = new EFDocQRCode_BR();
generateQR.parmErrorCorrectionLevel(QRCodeErrorCorrectionLevel::Medium);
try
{
qrCode = generateQR.generateQRCode(qrCodeText);
}
catch (Exception::CLRError)
{
warning("@ApplicationSuite_Localization:QRCodeIsDamaged");
}
return qrCode;
}
}>
Sachin Shukla
Read all articles…
Enterprise Architecture & ERP Implementation Governance
Transitioning complex organizational workflows into scalable ERP modernization architectures requires systematic alignment between core operational processes and underlying digital infrastructure across all operating subsidiaries. When executing enterprise deployments within intricate multi-entity business environments, organizations must rigorously prioritize data normalization, chart-of-accounts standardization, and unified telemetry architectures. Establishing resilient, pre-configured integration boundaries across legacy application estates directly eliminates technical debt while ensuring end-to-end data integrity across high-frequency transactional lifecycles. Cross-functional governance committees—uniting financial controllers, supply chain leaders, and enterprise technical architects—remain indispensable for maintaining strict configuration discipline and curbing procedural fragmentation across regional operating units.
Beyond core transactional execution, enduring platform longevity depends on deliberate organizational enablement and continuous operational validation across all stakeholder tiers. Implementing isolated sandbox environments, automated regression testing frameworks, and formalized release cadence protocols enables business units to absorb continuous platform enhancements without introducing unexpected downtime or operational friction. Enterprises that deliberately pair proactive telemetry monitoring with targeted role-based training programs consistently achieve accelerated user adoption, compress post-go-live stabilization horizons, and maximize the long-term return on strategic technology investments. This disciplined operating model provides the institutional agility needed to scale operations predictably.



No comment yet, add your voice below!