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 Name | Data Type |
|---|---|
| Event Name | Single line of text |
| Email Address | Single line of text |
| Name | Single line of text |
| Registration ID | Single line of text |
| Registration Date | Date and Time |
| Job Title | Single line of text |
| Session Preference | Choice (Morning Session, Afternoon Session, Evening Session) |

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:

Now follow the steps below:
- 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.

- 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.

- Add a compose action and provide the below expression to generate the Registration ID:
concat('REG-', formatDateTime(utcNow(), 'yyyyMMddHHmmss'), '-', substring(guid(), 0, 6))

- 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')}

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.
- Click + New Step. Search for “Upload file from URL” (under OneDrive for Business). Fill in the parameters:
| Property | Value |
|---|---|
| Source URL | https://quickchart.io/qr?text=@{outputs(‘Compose’)} |
| Destination File Path | /@{outputs(‘Compose_|_Registration_ID’)}.png |

- 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.

We’ll now save the form response, including the QR code details, into your “Event Registrations” SharePoint list.
- Click + New Step. Choose Create item (from SharePoint connector). Fill in the following:
| Field Name | Value |
|---|---|
| Site Address | Your SharePoint site URL |
| List Name | Event Registrations |
| Event Name | Power 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’)} |

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.
- 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

We’ll now send a confirmation email to the participant with their event details and QR code image.
- 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>

- In the last add, delete file action (from OneDrive for Business), and provide the ID from the Get file content action.

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.

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

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

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:
- Send an Email with Attachments in Power Automate
- Send Email Reminders from a SharePoint List using Power Automate
- Send an Email with Attachments from Local Folder using Power Automate
- Send a Customized email when a new item is created in a SharePoint list using Power Automate

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.