Skip to main content

Notifications

Community site session details

Community site session details

Session Id : R7fECN3wyTZZvX1IgGQmZj
Power Automate - Building Flows
Unanswered

Flow to export SharePoint list items into a Word Document while concatenating values in one field separated by space or symbol

Like (0) ShareShare
ReportReport
Posted on 10 Jun 2021 13:28:37 by 23

Hello experts,

 

I'm trying to create a scheduled flow to export items from my SharePoint list into a Word document. So far I am able to replace values in a word document template on a row/record basis however I want to export field items filtered based on a date field in one spot like a paragraph or bulleted items list kind of thing to generate a weekly report. 

 

fields similar to: Activity, Date created, Created by, Status

 

I read something about composing but I'm not quite sure how I can apply it here. Can someone please list out the steps for the flow that I should build?

 

Any help would be hugely appreciated!

  • TanyaMc Profile Picture
    77 on 20 Jan 2022 at 14:53:26
    Re: Flow to export SharePoint list items into a Word Document while concatenating values in one field separated by space or symbol

    @Amilah If you use the "Directory" option in Word Mail Merge you can get all the records from an Excel file in report format. I would export the list as Excel and then open it using in the mail merge reporting document. 

  • Amilah Profile Picture
    23 on 14 Jun 2021 at 13:15:46
    Re: Flow to export SharePoint list items into a Word Document while concatenating values in one field separated by space or symbol

    I researched a lot to find the best way to do this flow and here is what I found (in case this helps someone else stuck like me).

     

    First of all, I am not an expert so experts feel free to jump in if I am incorrect 😊

     

    I learned that it is currently not possible to export rows of SP list into a single word document by category. The best I could do came out with Html tags enclosing each value.

    But you can export values into a word template that replaces placeholders like mail merge. You can use repeating section content control to create a table format. I found that I couldn’t export rows of records to the same document. Instead, this feature is quite useful to create invoice and hire letters and such documents with few values to be changed for each iteration. You do need a premium Power Automate subscription to be able to export to MS Word.

     

    Here is my work around flow

    1. Trigger/recurrence
    2. Get items filtered by category and period
    3. Select – to map items
    4. Create HTML table
    5. Repeat steps 2 – 4 for each category ( I have 6)
    6. Create file that connects to all 6 tables created above and insert the values from each table into content

    This is not the word document that I wanted but it contains all the essential information I needed for the report.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started