Generating QR codes within Dynamics 365
In the realm of Microsoft Dynamics 365 Finance and Supply Chain (D365), a versatile and widely adopted business solution, the ability to generate QR codes has emerged as a game-changing feature. QR codes, with their ability to store a wealth of information in a compact visual format, offer a seamless and efficient way to facilitate various processes within D365. This innovation not only enhances data management and accessibility but also opens new possibilities for improving customer interactions, tracking assets, and simplifying inventory management. In this article, we will explore the significance and utility of generating QR codes within D365, shedding light on how this feature empowers businesses to thrive in the digital age.
QR codes in SSRS development
You may want to display legal information or item information on a certain SSRS report. QR codes, which can be seamlessly integrated into these reports, offer a dynamic and visually appealing way to connect physical and digital worlds. By embedding QR codes directly into SSRS reports generated from D365 data, businesses can provide stakeholders with quick access to relevant information. This can be achieved in a few very simple steps.
- Add container field to your SSRS report temporary table.
- Be sure to extend it, using the out of box Bitmap EDT.

- Build functionality within your SSRS DP class.
- You now need to populate the container field added to your SSRS report temporary table.
- Achieve this by using Microsoft.Dynamics.QRCode.Encoder, this will allow you to encode your content into the above created container field.
- Add the QR code to your RDL.
- Insert an Image into the new or out of box RDL within the design portion.
- Bind your image value to the above created container field within your report temporary table.
- After that simply build and deploy your SSRS report, then your QR code should be scannable!
Generating QR codes in X++ development
Generating QR codes within D365 using X++ is powerful way to enhance the functionality and interactivity of your D365 applications. With X++, you can seamlessly integrate QR code generation in D365 workflows and forms, enriching the user experience and streamlining various processes.
- Use the combination of bitmap, container, and the Microsoft encoder library.
- Open a System.IO.MemoryStream.
- Encode your variable and save your bitmap variable.
- Use the Binary class to construct your memorystream and store it into your container.
- Return your container and display as needed.
Tips and Tricks
- Be sure for the image use MIMEtype image/bmp.
- Different versions are available for encoding and are required depending on the length of your QR code variable. A wrong version could result in your QR code being really small or really big.
- Be sure that no extra spaces or CR exist in your variable before you try and convert it into a QR code.
