Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

QR code in body of email

Like (1) ShareShare
ReportReport
Posted on 14 Jul 2022 10:52:28 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

 

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 18 Jul 2022 at 10:24:55
  • nagaraj007 Profile Picture
    292 on 15 Jul 2022 at 06:47:28
    Re: QR code in body of email

    Hi @MarconettiMarco ,

     

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

     

    nagaraj007_1-1657867637492.png

     

  • nagaraj007 Profile Picture
    292 on 15 Jul 2022 at 06:43:44
    Re: QR code in body of email

    Thank you so much @MarconettiMarco 

  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 15 Jul 2022 at 06:25:10
    Re: QR code in body of email

    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 15 Jul 2022 at 06:19:56
    Re: QR code in body of email

    nagaraj007_0-1657865985506.png

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 15 Jul 2022 at 06:13:14
    Re: QR code in body of email

    Hello @nagaraj007 ,

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

     

    BR,

    Marco

  • nagaraj007 Profile Picture
    292 on 15 Jul 2022 at 05:29:04
    Re: QR code in body of email

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

     

    nagaraj007_1-1657862933020.png

     

  • David- Profile Picture
    1,254 on 14 Jul 2022 at 12:22:06
    Re: QR code in body of email

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

     

     

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 14 Jul 2022 at 12:00:17
    Re: QR code in body of email

    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

     

     

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started