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 Apps / sharepoint list get it...
Power Apps
Answered

sharepoint list get item to html

(0) ShareShare
ReportReport
Posted on by 407

Hi, I have a sharepoint list and i want to be able to select an entry and extract all content from that one entry into html. I have created a flow in the sharepoint list (See Flow2 img) and tried using compose to replace text in the html i uploaded, with the data from the sharepoint list. (See Flow1 img) The flow works with no errors, however not all the content comes across. Some data goes into the html and others just keep the original text in the html. I have tried changing the html with tokens around the text (e.g. {Sitehere} ) However, results in the same outcome. Any help with this would be much appreciated.

Flow2.PNG
Flow3.PNG
Flow1.PNG
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @Matt383 :

    I suggest you to check that each compose action correctly references the return result of the previous compose. Also, I recommend you to check the output of each compose in the run history.

    In addition, if you wish to display images in HTML I suggest you use Base64 images.

    Best Regards,

    Bof

  • Matt383 Profile Picture
    407 on at

    Hi v-bofeng,

    Yes i have all the images converted to base64 and have checked numerous times on the compose, even side by side with the ones that do return the data. No errors in the flow,  numerous efforts to resolve this with same results. In the end, modified flow to initalize variable (Name: objectList, Type: Object, Value: Body), then a Compose with html script in expression.

    <td>',variables('objectList')?['WorkDetails'],'</td> returns all the data. In regards to images, this worked for me

    <td><img src="',variables('objectList')?['Signature1'],'" width="60" height="60"></p>

     

    Cheers,
    Matt383

  • Verified answer
    Ashwin7104 Profile Picture
    671 on at

    Hey @Matt383,

     

    How about we generate the HTML content directly in set variable action instead of replacing each text using compose action with actual value. 

    Ashwin7104_0-1647575539348.png

     

    The variables you see on the above images either contains image base 64 value or it contain data as well. Then the HTML variable is used to generate PDF. Will this method work for you ?



     

  • Matt383 Profile Picture
    407 on at

    Cheers, that will work as well, i will test it over the weekend.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard