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 / Flow generate a pdf re...
Power Automate
Answered

Flow generate a pdf report + photos

(0) ShareShare
ReportReport
Posted on by

Hi guys,

I have a simple flow: a user fill a Sharepoint form, each answer is written in an html table and the html document is converted in pdf. Everything work fine, but I want my user to take a photo for a few questions. Photos will be saved in an "attachment column" in sharepoint.

 

How can I display these photos or attach them to my report ?

 

Thanks for your help

Categories:
I have the same question (0)
  • eliotcole Profile Picture
    4,390 Moderator on at

    If you don't already know the Attachment ID, then Get attachmentsGet attachment content, if you do, then Get attachment content ...

     

    Once you're there, then either make the file temporarily somewhere on a drive to perform what you're already doing, or insert from the attachment content.

     

    I don't know how you're currently making the HTML, so y'know ... which ever of those works. 👍

  • ProFe Profile Picture
    on at

    Thank you for your answer,

    I made it simple:  my flow is working when I attach one image, but I need my user to upload 2 or 3 photos.

     

    Do you have any advices for that ? 

     

    I'm trying to work with one "Image" column per question, but working that way I can't make use of the "get attachment content" action.

    See below my flow. working with 1 attachment:

    1.png2.png3.png4.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ProFe ,

     

    Please try:

    vbofengmsft_0-1655278644605.png

     

    concat('<img src="data:',body('Get_attachment_content')['$content-type'],';base64,',body('Get_attachment_content')['$content'],'" width=100% >')

     

    Best Regards,

    Bof

  • ProFe Profile Picture
    on at

    Thank you for your help, it's working but I chose another solution since I have a 2Mb limitations for converting file to pdf.

  • Devlink Profile Picture
    16 on at

    Thank you sooooo much!  I've been trying to work out how to do this for three days!  As a JSON and PA noob it was proving to be a never ending circle failures, but this worked first time 👍🏻

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard