For Everyone

Salesforce Admins: Make QR Codes and Barcodes in Salesforce

2 min read
CloudAnswers photo
CloudAnswers
Share
TODO

Unlock the power of QR codes and barcodes (aka zebra codes) in Salesforce. Add them to your page layouts, email templates, communities (aka experience cloud), portals, and printed templates.

This can be accomplished by a junior admin with a simple formula field — no code required.

Read more if you want to embed a QR Code or any other barcode format into your salesforce instance like this:

It’s really easy for an admin to embed a QR Code like this into any object in Salesforce.

Barcodes and QR Codes are machine-readable formats for data, so the first step is to pick the data you want from that record.

The Record ID or Auto-Number field is a good choice because it won’t change with time — as you might see with email, name, or phone number.

Here is the formula that generates the QR code in the above screenshot:

In the above formula, a barcode generation service is called and an image is returned with the data you want to be embedded within it. The “& Id” part is what you would customize with your own information. You can use custom or standard fields, or even cross-object references. It accepts numbers, text, urls, phone numbers, urls, etc.

To create this formula and embed a QR code in your salesforce instance, just follow these steps:

  1. Open Setup
  2. Click the “Object Manager” tab
  3. Open the object for which you want to create your QR code (eg. Contact)
  4. Click “Fields & Relationships”
  5. Click the button “New”
  6. Select “Formula” and click “Next”
  7. Enter your desired field name (eg. “QR Code”), select the type “Text”, then click “Next”
  8. Enter the following formula and click “Next”:

IMAGE(
"https://barcode.cloudanswers.com/png?size=150x150&content=" & Id ,
"qr code",
150,150)

  1. Chose your permissions and page layouts at the end of the wizard.

At this point, you’ll be able to see the QR code in your page layouts and you can include it in emails, communities, conga docs, or any other place you need them.

🎉🎉🎉 Congrats! You did it! 🎉🎉🎉


CloudAnswers photo
CloudAnswers
Share

About CloudAnswers

Salesforce apps, powerful components, custom development, and consulting. Our experienced team helps you to create and modify workflow processes in salesforce.

Related Articles

For Everyone

Product Launch: CloudAnswers Shop Builder

Are you looking for an easy way to launch an ecommerce shop? Our new app, Shop Builder, is now in public beta! We’re looking for companies that want to build an online shop but don’t want to spend thousands building it out.

April 12, 2024

5 Min Read

For Everyone

A Day in the Life of a Project Manager at CloudAnswers

I'm Emily, and I've been a project manager at CloudAnswers for the last two years. It can be a nebulous role, but I like to say I act as a bridge between the product vision and tangible results, whether that is building a custom app for a client or one of our own Salesforce products. My typical day revolves around managing tasks, ensuring progress, and maintaining standards while adhering to project timelines.

March 22, 2024

5 Min Read

For Everyone

Create a Custom Lightning Component for Alert and Confirm Dialogs

As front-end developers, there can be numerous instances when we need to display a prompt, a confirm dialog, or a confirm dialog with some input control to accept some value from the user. If you happen to be a Salesforce developer reading this article, you must have had such a requirement while writing lightning components.

March 4, 2024

6 Min Read