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

Community site session details

Session Id : RtKG3/15uGOTikkTugihSb
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 25 Oct 2023 03:12:04 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. 

I have the same question (0)
  • jdaniel1 Profile Picture
    81 on 25 Oct 2023 at 16:15:17
    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 25 Oct 2023 at 04:10:49
    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 25 Oct 2023 at 03:28:10
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete