web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / QR code in body of email
Power Automate
Answered

QR code in body of email

(1) ShareShare
ReportReport
Posted on by 294

Hello All,

 

I have got an requirement where in i have to show the dynamic QR code in the body of the email. Please advise

 

As of now i am able to attach the QR code in the email.

 

 

 

nagaraj007_0-1657795892779.png

 

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @nagaraj007 ,

    please follow these steps:

    1. After your HTTP request, create a file in OneDrive or SharePoint:

    MarconettiMarco_0-1657799818098.png

    2. Get file content:

    MarconettiMarco_1-1657799838327.png

     

    3. Compose action in which put the following expression:

    base64(outputs('Get_file_content')?['body'])

     

    MarconettiMarco_2-1657799875533.png

    4. Initialize a string variable in which put the following string:

    <img src="data&colon;image/png;base64,@{outputs('Compose')}" width="100" height="90">

    MarconettiMarco_3-1657799916209.png

    5. Finally add the variable into the email body.

    MarconettiMarco_4-1657799985592.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

     

     

     

     

  • David- Profile Picture
    1,254 on at

    I have not used this in Power Automate yet, but I have used it in SharePoint and Nintex workflows and it works. There is an API from the website QR Code Generator (goqr.me). You format the URL with what you want to encode, and then you put it in your e-mail with an img tag, which returns your QR code.

     

     

     

    <img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Example" width="150" height="150">

     

     

     

  • nagaraj007 Profile Picture
    294 on at

    I added the same as per your instruction but the image is not displaying. I am getting the below error.

     

    nagaraj007_1-1657862933020.png

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @nagaraj007 ,

    please share the flow in edit mode, so that I can make some checks.

     

    BR,

    Marco

  • nagaraj007 Profile Picture
    294 on at

    nagaraj007_0-1657865985506.png

     

  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @nagaraj007 ,

    please in the Intialize variable, try to use this expression:

    MarconettiMarco_0-1657866416080.png

     

     

     

    As I can see, all is correct within the remaining Actions.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

  • nagaraj007 Profile Picture
    294 on at

    Thank you so much @MarconettiMarco 

  • nagaraj007 Profile Picture
    294 on at

    Hi @MarconettiMarco ,

     

    In outlook, image is showing but in gmail image is blank , please advise.

     

    nagaraj007_1-1657867637492.png

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @nagaraj007 ,

    please consider this solution:

    https://powerusers.microsoft.com/t5/Building-Flows/Embedded-Image-in-Email-an-oldy-but-a-goody/m-p/828778#M115853

     

    BR,

    Marco

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard