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 :
Power Platform Community / Forums / Power Automate / Sharepoint list to htm...
Power Automate
Unanswered

Sharepoint list to html to pdf with attachment

(0) ShareShare
ReportReport
Posted on by

Hello!

 

I have a flow to create an HTML-file of all sharepoint list items. I use an Apply to Each to put new rows in the html table using append to string variable:

 

Scherm­afbeelding 2023-09-28 om 07.01.50.png

This working perfect, and is generating my HTML-file as expected.

 

Each item in the sharepoint list also has 1 attachment, this is always an image.

I'd like to show that image in the generated table as well using the <img> tags, but I fail to get the flow correct. This is my first flow ever and it feels like I hit a wall.

 

I have a feeling that I should initialize an Array variable, and append the attachment content to the variable.

I can't get the images to show up in the html-file.

Scherm­afbeelding 2023-09-28 om 07.11.26.pngScherm­afbeelding 2023-09-28 om 07.11.18.pngScherm­afbeelding 2023-09-28 om 07.11.01.png

 

I'm guessing this is something pretty easy, but I'm stuck on it for 2 days now so I could use some help 🙂

 

Thanks in advance,

 

Kjeld

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Sharepoint list to html to pdf with attachment

    Hi @kjeldlarmit ,

     

    Pls refer the below sample flow to embed image in the html file:

     

    ManishSolanki_0-1695903141176.png

    In image tag 'img', content type & content are passed to embed it in html file.

    <img src="data:@{outputs('Get_attachment_content')?['body']['$content-type']};base64,@{outputs('Get_attachment_content')?['body']['$content']}" />

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard