Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nURDh2ybYC0LCs7hEjVLEm
Power Apps - Building Power Apps
Answered

Export PowerApps Collection Data in Word Document

Like (0) ShareShare
ReportReport
Posted on 25 Apr 2023 06:30:00 by

Hi,

 

I am pretty new to PowerApps and read a bit about it, but never saw a specific solution for my problem.

In PowerApps I want to export the Collection Data to Word. 

The Word Template is finished and is marked as a repeated section. 

The only problem is, how do I get a specific collection to be exported into a Word Document?

I use the premium Connector, but what is needed for the Table Rows?

Thanks alot.

 

Categories:
  • Community Power Platform Member Profile Picture
    on 27 Apr 2023 at 05:05:31
    Re: Export PowerApps Collection Data in Word Document

    @WarrenBelz Its ok. I think I get it and if not, I hope you can figure out what I am doing wrong 😄

    Thanks alot!

  • WarrenBelz Profile Picture
    146,658 Most Valuable Professional on 26 Apr 2023 at 20:46:31
    Re: Export PowerApps Collection Data in Word Document

    Hi @Anonymous ,

    That is just a Compose action - I always rename them for ease of referral further down. I was actually a bit surprised that it Word accepted it directly as it is a bit "fussy" on other things. Not sure what you mean by "Action field" - I used ShowColumns(RenameColumns() on the collection to "line up" with the merge tag names in the template and that is about it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Community Power Platform Member Profile Picture
    on 26 Apr 2023 at 15:33:09
    Re: Export PowerApps Collection Data in Word Document

    @WarrenBelz Oh great! Thanks!!! That sounds like the solution I need 😄 
    Can you kinda explain it in more detail... I am a bit slow right now. I dont see any Aktion that is called "Mergefield", I have to use the german version. Could you make a screenshot of the Action field? 

  • Verified answer
    WarrenBelz Profile Picture
    146,658 Most Valuable Professional on 26 Apr 2023 at 10:43:09
    Re: Export PowerApps Collection Data in Word Document

    @Anonymous ,

    As I mentioned before, I had not needed to attempt this, however I had a go when I had the time and the solution ultimately is very simple - construct a collection with the exact field names as your Word template merge references and then

    With(
     {wJSON: JSON(CollectionName)},
     FlowName.Run(wJSON)
    )
    

    with this in the Flow

    WarrenBelz_0-1682505767683.png

    I have tested it and it works.

     

  • Community Power Platform Member Profile Picture
    on 26 Apr 2023 at 08:28:07
    Re: Export PowerApps Collection Data in Word Document

    It's not a pretty solution, but that's how I've done it at the moment.
    The only problem is that in PowerApps all Sharepoint entries are clearly visible, which means that if the app is used by someone else, these entries can be seen by the other and neither of them can work correctly with them.
    Is there a possibility that data is sent to sharepoint somehow delayed?

    HX123_0-1682497513027.pngHX123_1-1682497596393.png

    HX123_2-1682497650718.png

     

     

  • WarrenBelz Profile Picture
    146,658 Most Valuable Professional on 25 Apr 2023 at 10:24:54
    Re: Export PowerApps Collection Data in Word Document

    @Anonymous ,

    I will depart and wish you the best as I would recommend you take something less complex as I outlined.

  • Community Power Platform Member Profile Picture
    on 25 Apr 2023 at 10:08:16
    Re: Export PowerApps Collection Data in Word Document

    @WarrenBelz It doesn't seem so. He clearly stated that he is using the Data from PowerApp directly.

  • WarrenBelz Profile Picture
    146,658 Most Valuable Professional on 25 Apr 2023 at 10:02:21
    Re: Export PowerApps Collection Data in Word Document

    @Anonymous ,

    They also appear to be using a dummy SP list. Maybe you could also send a unique number then use Get Items to isolate the records fetched to that item.

  • Community Power Platform Member Profile Picture
    on 25 Apr 2023 at 09:39:59
    Re: Export PowerApps Collection Data in Word Document

    @WarrenBelz Yeh, I have done that, but the problem is, what if 2 people use that app at the same time. Informations could collide with each other.

     

    I try this solution right now: Unleash the Power of Power Apps: Create Word, Excel, HTML Templates & More with Power Automate - YouTube
    But like I said, I am pretty new to PowerApps ...lets see...

  • WarrenBelz Profile Picture
    146,658 Most Valuable Professional on 25 Apr 2023 at 09:36:00
    Re: Export PowerApps Collection Data in Word Document

    @Anonymous ,

    I have looked at it again - I suggest you write it all to a dummy SP list, follow the process as per the blog and then delete the items from the list when you are finished. 

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,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard