Monday, 12 November 2018

Generate QR Code in Lightning for any Salesforce Object

Note - These steps are for the Lightning Environment.

Implement in Salesforce: You need to follow just these steps to create a QR code for an object in Salesforce. So pick any object for this. I have picked the Account object here.

1. Click on the Object Manager tab.
2. Select any Object where you want to create a QR code. I'm using here Account object.


3. Click the "Fields & Relationships" from your left side after that click on "New" to create a new field.


4. Now choose the Formula and click Next.


5. Fill in the field label and choose "Text" as a return type.
6. Paste the formula into the formula box and click Next >> Next >> Save.

IMAGE('https://chart.googleapis.com/chart?chs=200×200&cht=qr&chl=https://cs87.salesforce.com/'&Id ,'Scan QR code to open record in mobile.')
   
Do not use your Lightning Domain Name URL. You have to use only the Salesforce Classic Domain Name URL.

7. Now Open any Account record in your Salesforce Org to show the QR code of the current record.

5 comments:

  1. This looks really cool, thank you for posting! I'm not really sure though how I would use it. Can you provide an example where it would come in handy?

    ReplyDelete
    Replies
    1. Event registration, sending out the email and having the url be a link to "check in" the contact through some visualforce page when they arrive to the event. Orders page to put on a packing slip if Salesforce is used for a physical goods company (b2b community or b2c community). Service tags for field service to go directly to the asset in Salesforce.

      I'm sure there are more, but a few that I can think of.

      Delete
    2. Hi David,
      This is already an example also. Only you have to implement step by step.

      Thanks

      Delete
  2. Fast Response (QR) codes seem to show up any place these days. We can see them on flags, magazine promotions, destinations, thing packaging, and so forth. Using the QR codes is one of the most beguiling techniques for cautiously partner purchasers to the web by methods for PDAs since the mobile phones have become a key need thing of everyone. In this paper, we present a procedure for making QR codes by which the customers enter text into a web program and get the QR code delivered. QR Code Creator

    ReplyDelete
  3. Google chart api was deprecated, is it safe to use the api for qr code generation? is there any other secure apis outthere for qr code generation? Please drop a comment.

    ReplyDelete

Total Pageviews