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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a html file i...
Power Automate
Unanswered

Creating a html file including the pictures saved in attachment column from a list

(0) ShareShare
ReportReport
Posted on by 110

Good day,

I am looking for a simple way of creating a html file (or pdf) which will contain the list items (this one is ok) along with (most important) the images which are saved inside the attachment column.

 

 

thanks.

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Unfortunately, to add the pictures to the HTML you'll need to retrieve the actual contents of the picture file.  This video by Shane Young is probably one of the best overviews of what to do.

    https://www.youtube.com/watch?reload=9&v=2rfAQe1kK8M 

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @AOZ 

     

    I believe it is possible to use the attachment images.  I also agree that the Shane Young Video is good.  @RezaDorrani has a good one too https://www.youtube.com/watch?v=Da4do2DxmJE.

     

    I have tried the following:

     

    Retrieve the attachments from the list Item (using the Item ID), then in an apply to each, I get the file content of each file and output to a compose.

     

    DamoBird365_0-1627052538618.png

    Outside of the Apply to Each, I then use "Pieters Method" to bring together an array of the file contents using a compose.  

     

    DamoBird365_1-1627052685858.png

     

    A select is used to create an array of HTML IMG tags using the DataURI expression.

     

    I join the array using a select action with BR tags to insert some break lines between images (html formatting of your choice at this point ! 😉 )

     

    A compose to insert the img html into the main HTML

     

    And then finally a create file action to create the HTML file.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

     

     

  • AOZ Profile Picture
    110 on at

    Indeed @RezaDorrani 's video allowed me to do it successfully!

    AOZ_0-1627218224380.png

     

    AOZ_1-1627218256113.png

     

  • mmunday Profile Picture
    16 on at

    What was the expression used in the select area

     

  • mmunday Profile Picture
    16 on at

    do you have a link to that video 

  • mmunday Profile Picture
    16 on at

    I was able to follow your instructions which are perfect. I ran into an issue. My SharePoint item has 5 attachments but only 3 are displaying on html file. What did I do wrong?

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard