Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 81

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. 

  • jdaniel1 Profile Picture
    81 on at
    Re: How to get Sharepoint Image Files to ouput into a HTML Table

    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

  • jdaniel1 Profile Picture
    81 on at
    Re: How to get Sharepoint Image Files to ouput into a HTML Table

    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"
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: How to get Sharepoint Image Files to ouput into a HTML Table

    Hi @jdaniel_dyn365 ,

     

    Please try:

    vbofengmsft_0-1698204463584.png

    vbofengmsft_1-1698204481509.png

     

    Best Regards,

    Bof

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1