Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create formatted text file from SharePoint List

(0) ShareShare
ReportReport
Posted on by 41

Hey all, I have a SharePoint List from which I am looking to make a text report.

 

Essentially, the data input looks something like this (but with 12 columns, and about 100 rows):

 

PROJECT TITLETIMELINENOTES
The Best ComputerCompletedNot a great computer
Another DayWork in ProgressComing along great

 

And I would like the output to look something like this (either in Word or PDF):

 

PROJECT TITLE: The Best Computer

TIMELINE: Completed

NOTES: Not a great computer

 

PROJECT TITLE: Another Day

TIMELINE: Work in Progress

Notes: Coming along great

 

I have been able to accomplish this for a single SharePoint list item using Get item -> Compose (with some basic html formatting) but I can't figure out how to make this function apply to each row/item in the SharePoint list, except by using the html table function. And if I use an html table, I can't seem to figure out how to format that data back into plain text either.

 

Any input on simplest approach would be greatly appreciated. Thanks!

 

Best,

Josh

  • jdeitell Profile Picture
    41 on at
    Re: Create formatted text file from SharePoint List

    Have a follow-up question if it's not too much trouble. When I run this script it's displaying the items in order of date created. Right now my SharePoint list is sorted by a column called PRIORITY and then a column called TITLE. How can I apply the same sorting to this Flow output? 

  • jdeitell Profile Picture
    41 on at
    Re: Create formatted text file from SharePoint List

    This is perfect! Thank you so much for your help

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Create formatted text file from SharePoint List

    Hi @jdeitell ,

     

    Edit

    Please try this

    vxiaochenmsft_0-1693535496130.png

    PROJECT TITLE: @{items('Apply_to_each')?['Title']}<br>TIMELINE: @{items('Apply_to_each')?['TIMELINE']}<br>NOTES: @{items('Apply_to_each')?['NOTES']}<br><br>

     

    vxiaochenmsft_2-1693535837490.png

    vxiaochenmsft_3-1693535848267.png

     

    Best Regards,

    Wearsky

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1