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

Notifications

Announcements

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 292

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
    292 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
    292 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
    292 on at

    Thank you so much @MarconettiMarco 

  • nagaraj007 Profile Picture
    292 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard