In this post I am going to show you a simple way to generate the QR Coder in Salesforce. To generate the QR I going to use the QuickChart open source chart image API.
Let's go through the attribute with respect to the quickchart. Please look at the below URL.
https://quickchart.io/chart?cht=qr&chs=200x200&chl='&Id
cht - Type of the chart
chs - Image dimension
chl - Value. Here I have passed the Id.
To generate the QR code I used this in a formula field as like below.
IMAGE('https://quickchart.io/chart?cht=qr&chs=200x200&chl='&Id,
'Scan QR code to open record in mobile.')
In this formula I have passed the record id as a value for QR Code. Please look at the below record to with the QR Code.
Please let me know your thoughts in comments.