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 / How to get Sharepoint ...
Power Automate
Answered

How to get Sharepoint Image Files to ouput into a HTML Table

(0) ShareShare
ReportReport
Posted on by 83

I'm trying to get all files in a folder put into a HTML table, then converted to a PDF. I have a good rough draft of this flow built out and working. The part I'm struggling with is the Append to <img src="" step. 

 

Screenshot 2023-10-24 195245.png

I've tried:

<img src="[Thumbnail_Small]"> Which does work on a file.html but once its converted to file.pdf the images break. 

SharePoint to HTML is working, just breaks after the convert to PDF. 
2023-10-24 19 59 07.png

Other articles mention I need to use the "Get File Content" SharePoint Block, which is posted to output a $content-type and $content. But that block doesn't seem to be doing anything for me, or one thing I noticed, is the file images, because there HEIC or phone site visit pics, the file content is so big the Power Automate is saying my byte size limit exceeds for that variable (if I try and store it in a variable).

 

Once those are outputted, some of the articles Ive found on other threads here says use:

 

<img src="data:[$content-type];base64,[$content]>

 

Any thoughts on which part I'm not doing right:

 

* Do I need a step that reduce the file content size?

* Is there a way to keep the thumbnail method but get the convert to PDF to keep it?

Any help appreciated. 

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

    Hi @jdaniel_dyn365 ,

     

    Please try:

    vbofengmsft_0-1698204463584.png

    vbofengmsft_1-1698204481509.png

     

    Best Regards,

    Bof

     

  • jdaniel1 Profile Picture
    83 on at

    Your a life saver bud! I'll have to see If I can achieve the same thing using a SharePoint connector. trying to avoid using OneDrive as much as possible on this specific project. But this is a great start. 

    I got it working once, but now I'm getting a weird error on the convert to PDF. Will give it a evening rest and try again tomorrow. lol

    "An exception occurred while executing within the Sandbox"
  • jdaniel1 Profile Picture
    83 on at

    Update: Seems so far, I can only get this working on Thumbnail Small and Medium. Using Large Thumbnail consistently keeps giving me that Sandbox Error. Not sure if anybody else ran into that. I'm concerned the output is going to be too grainy. The html output is fairly clear, so maybe it's somewhere in the convert PDF process that really downgrading the image. 

    2023-10-25 09 10 31.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard