How to Generate QR Code Using Power Automate?

Recently, a client who hosts many corporate events each year asked me for help with a special request. They wanted to create a QR code for every event participant automatically. When someone scans the code, it should quickly display their basic information, such as their name, registration ID, and event details, to speed up the check-in process.

In this tutorial, I will show you how to generate a QR code using Power Automate step by step.

Generate QR Code Using Power Automate

Suppose you’re organizing an event, and you want to create a Microsoft Form to collect event registrations. When someone submits the form, Power Automate generates a QR code and sends them an email with the QR code. Also, save all the registration details and the QR code image in a SharePoint list to keep track of submissions.

Before we build our Power Automate flow, let’s first create a SharePoint list to store all the form responses, along with the generated QR code URL.

For this example, I created a SharePoint list called “Event Registrations” with the following columns.

Column NameData Type
Event NameSingle line of text
Email AddressSingle line of text
NameSingle line of text
Registration IDSingle line of text
Registration DateDate and Time
Job TitleSingle line of text
Session PreferenceChoice (Morning Session, Afternoon Session, Evening Session)
power automate generate qr code free

Create a Microsoft Form

For this flow to work, you need a Microsoft Form that collects the participant’s registration details.

This is the form that we will use in this example:

power automate create qr code free

Now follow the steps below:

  1. Go to Power Automate. Click on Create > Automated cloud flow. Name: Generate QR Code for Registrations. Select trigger: When a new response is submitted. Select your Microsoft Form from the dropdown.
create qr code using power automate
  1. To retrieve the response, add the Get response details action from the Microsoft Forms connector. Then, select the Form ID from the dropdown menu and choose the Response ID from the dynamic content of the ‘When a new response is submitted’ trigger.
generate qr code power automate
  1. Add a compose action and provide the below expression to generate the Registration ID:
concat('REG-', formatDateTime(utcNow(), 'yyyyMMddHHmmss'), '-', substring(guid(), 0, 6))
power automate create qr code
  1. Add a Compose action. In the Inputs field, add the text you want to encode in the QR code:
Name: @{outputs('Get_response_details')?['body/rcb52108b756a4424ba8a7f8c046c50e5']}
Email: @{outputs('Get_response_details')?['body/responder']}
Session Preference: @{outputs('Get_response_details')?['body/r5b1f6315800447349f74fde3b21b3e33']}
Registration ID: @{outputs('Compose_|_Registration_ID')}
power automate qr code

We’ll now use the “Upload file from URL” action to save the QR code as a .png file in OneDrive. This allows you to keep a personal backup or use the file elsewhere.

  1. Click + New Step. Search for “Upload file from URL” (under OneDrive for Business). Fill in the parameters:
PropertyValue
Source URLhttps://quickchart.io/qr?text=@{outputs(‘Compose’)}
Destination File Path/@{outputs(‘Compose_|_Registration_ID’)}.png
generate qr code using power automate
  1. Add Get file content (from OneDrive for Business) and provide the following:
File:	@{outputs('Upload_file_from_URL')?['body/Id']}

This dynamic value grabs the file ID of the uploaded QR code image from the previous step.

power automate qr code generator

We’ll now save the form response, including the QR code details, into your “Event Registrations” SharePoint list.

  1. Click + New Step. Choose Create item (from SharePoint connector). Fill in the following:
Field NameValue
Site AddressYour SharePoint site URL
List NameEvent Registrations
Event NamePower Platform Conference
Name@{outputs(‘Get_response_details’)?[‘body/rcb52108b756a4424ba8a7f8c046c50e5’]}
Email Address@{outputs(‘Get_response_details’)?[‘body/r1a4abcbbfaea422c81b56a118d39eed6’]}
Job Title@{outputs(‘Get_response_details’)?[‘body/rd07681fe5a3c4778b41d6e12eafb6c03’]}
Registration Date@{outputs(‘Get_response_details’)?[‘body/submitDate’]}
Session Preference@@{outputs(‘Get_response_details’)?[‘body/r5b1f6315800447349f74fde3b21b3e33’]}
Registration ID@{outputs(‘Compose_|_Registration_ID’)}
Power Autoamte sharepoint list qr code

We’ve already uploaded the QR code to OneDrive and fetched its file content. Now let’s attach that QR code image to the SharePoint list item.

  1. Add “Add attachment” (under SharePoint) Action. Provide the following values:
    • Site Address: Same as used in the “Create item” action
    • List Name: Event Registrations
    • Id: Use the ID from the Create item step
    • File Name: @{outputs(‘Compose_Registration_ID’)}.png
    • File Content: Use File Content from the Get file content step
How to create a QR code using Power Automate

We’ll now send a confirmation email to the participant with their event details and QR code image.

  1. Add “Send an email (V2)” Action and fill in the fields as follows:
    • To: @{outputs(‘Get_response_details’)?[‘body/responder’]}
    • Subject: Your Event Registration Confirmation & QR Code
    • Body:
<p class="editor-paragraph">Hi @{outputs('Get_response_details')?['body/rcb52108b756a4424ba8a7f8c046c50e5']},</p>
<p>Thank you for registering for the <b><strong class="editor-text-bold">Power Platform Conference</strong></b>.</p>
<p>Please find your QR code below:</p>
<img src="data:@{body('Get_file_content')?['$content-type']};base64,@{body('Get_file_content')?['$content']}">
<p class="editor-paragraph">Show this at the event check-in counter.</p>
<p>Regards,</p>
<p>Events Team</p>
Power Automate generate QR codes in documents
  1. In the last add, delete file action (from OneDrive for Business), and provide the ID from the Get file content action.
How to create QR Code with Power Automate

Click Save in the top-right corner of Power Automate. Wait for the confirmation message: “Your flow is ready to go.

Open the Microsoft Form you created (used as the trigger). Please fill in the form with the test details.

Generate QR to SharePoint list items

After a few seconds, the participant will receive an email with the QR code.

How to Generate QR Code Using Power Automate

Also, a new item will be added to your “Event Registrations” SharePoint list.

How to Generate QR Codes in Power Automate

So, this is how you can automatically generate a QR code using Power Automate when a Microsoft Form is submitted, and then:

  • Upload the QR code to OneDrive
  • Save form responses in a SharePoint list
  • Attach the QR code image to the SharePoint list item
  • And finally, send a confirmation email to the participant with the QR code embedded in the message

You may also like:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App