Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

sharepoint list get item to html

(0) ShareShare
ReportReport
Posted on by 395

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.

  • Matt383 Profile Picture
    Matt383 395 on at
    Re: sharepoint list get item to html

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

  • Verified answer
    Ashwin7104 Profile Picture
    Ashwin7104 671 on at
    Re: sharepoint list get item to html

    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
    Matt383 395 on at
    Re: sharepoint list get item to html

    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

  • Re: sharepoint list get item to html

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard