cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisChong
Advocate II
Advocate II

How to export or send Powerapps record to Word template?

Goodday All,

I am looking for ideas of how to send (export) data from a PowerApps record to a Word document. Any suggestions?

I have an App in which data are recorded. I would then like to OnSelect of a button, send or export certain data to a Word document. I would apprreciate any recommendations. Is this even possible without employing Flow?  I am sure this would be useful to many others as well.

Thanking all of you for considering.

Chris

7 REPLIES 7
RandyHayes
Super User
Super User

@ChrisChong 

There is no way currently to do this without the use of Flow (that I've encountered).  

 

There are a couple of options within Flow and PowerApps.

1) The Easy - Use the Plumsail Connector Works great. Is easy to implement. VERY flexible (in terms of template fill-in) Comes at a cost (subscription service)

 

2) The Challenging - Incorporate the use of Templates within a Content Type in SharePoint (or directly in the library) and create a document based on the Content Type and fill in the column values to populate the template.  No additional cost. Difficult to implement. Limited ability to fill-in the template. 

 

And a 3rd option that is relatively new on the scene is the Word Online (Business) connector.  Also claims to be able to complete a document from a Template.  I've seen no other information on it to provide details on the claim.  However, it is a Premium connector - so, all users would need a P1 license or above.

 

Hope this helps shed some light on the choices.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi @RandyHayes 

 

Do you have experience with the Plumsail connector?

I want to output a report, similar in concept to an Order Header / Order Detail. There will be a flixible number of Order Detail lines. I'd like to populate a Word template, to take advantage of 'Keep with Next', 'Keep Together' paragraph and table formatting to ensure presentable pagination.

Just wanted to check if you know whether the Plumail connector is capable of handling a variable number of repeating records in the body of th template? I've looked at the Word connector and it doesn't seem to do repeating sections.

 

@PaulD1 

Yes, the Plumsail connector is very flexible and can accept records and tables worth of items.

We use the connector for Word and Excel creation and it works well.  The Template is defined differently than a standard Word template, but it's much more flexible.

In reference to my posting - we started with solution #2 and it was painful.  Templates needed to be maintained at the Document Library level and if more than one was needed, then at the Content Type level.  In order to get the template to fill-in, it took a lot of work in Flow to assign the proper column values.  

With Plumsail, we simply had a Template library, PowerApps "picked" the proper Template name and that, along with a payload of JSON to Flow and we had our document created.  Tweaks to the template were easy to do since it was just a regular document in a document library.  Overall...Highly recommend it!

 

Plumsail Documents will work with DOCX, XLSX and HTML Templates.

It will generate any of the above plus PDF and can also be used to manipulate PDF files (merge, split, convert, etc.).

 

I also found their documentation and demos to be very well done and spot-on.

Some specifics to check out:

Defining templates with Plumsail.

Specifically - tables with Plumsail.

Also in the subscription are several Actions that can be taken besides just creating docs from templates.

 

They have pretty decent licensing prices and, when we put it side-by-side to the amount of work needed for the other options, it was well worth it.

 

I haven't looked at the Word (Business) Connector yet, but it seems pretty pale in comparison.  And, it requires all users of it to be P1 or above.  Plumsail charges by the document created and it is not a per user license.

 

They also have other subscriptions for things like super-pumped Flow actions and a slew of other products that are not necessarily Flow or PowerApps specific.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks @RandyHayes - looks like this could be the solution I'm look for - checking it out now...

mbrocchi1
Advocate II
Advocate II

Hi Chris,

 

I know this is a relatively old post but as people may still be looking at responses to your question I thought I would jump in with my own thoughts. In my example (link provided below) I demonstrate step by step precisely how to export from Power Apps to a Word document. To answer your other question, yes it does require the use of Power Automate but I take you through the entire process and don't worry it pretty easy to follow!

 

https://youtu.be/tyDU9bxA0L0 

 

PaulD1
Community Champion
Community Champion

In the end we didn't go the Plumsail route as the client did not want want the ongoing cost (I think about $0.10 per Document created in our scenario). Instead I built a function hosted in Azure which monitors an Azure blob storage container. When a JSON file is saved to the container the function fires.

The function uses free Open XML libraries - it opens Word 'Templates' (also stored in the Azure Storage) and merges them with the JSON data and then outputs a Word docx file (which we then convert to a PDF by saving to OneDrive and using the OneDrive convert step in Flow).

It handles repeating data / hierarchical structures by using a separate Word template for each level of the hierarchy and copying each merged template back to the top level document - e.g.

Sales Report

- Customer 1

-- Sale 1A

--- Product X

--- Product Y

-- Sale 1B

--- Product X

--- Product Y

- Customer 2

-- Sale 2A

--- Product X

--- Product Y

-- Sale 2B

--- Product X

--- Product Y

 

Pros: Cost - very cheap (the storage and compute comes to a few cents a month). No need for premium connectors. Supports repeating/hierarchical structures. Relatively easy to amend the templates.

Cons: Initial effort to set up and host / maintain (not citizen developer level).

 

Can't share code as it is IP of the companies involved, but if anyone is interested I could do a demo vid with enough detail to get others started.

Hi PaulD1, seems like an interesting solution, would be great if you can share more about the merge process? 

Helpful resources

Announcements

Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.     

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.    Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik   Heartholme     AaronKnox        Matren        Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma      If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.       Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.    Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Welcome to the Power Apps Community

Welcome! Congratulations on joining the Microsoft Power Apps community! You are now a part of a vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun! Now that you are a member, you can enjoy the following resources:   The Microsoft Power Apps Community Forums If you are looking for support with any part of Microsoft Power Apps, our forums are the place to go. They are titled "Get Help with Microsoft Power Apps " and there you will find thousands of technical professionals with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Apps community forums! Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered!   Microsoft Power Apps IdeasDo you have an idea to improve the Microsoft Power Apps experience, or a feature request for future product updates? Then the "Power Apps Ideas" section is where you can contribute your suggestions and vote for ideas posted by other community members. We constantly look to the most voted Ideas when planning updates, so your suggestions and votes will always make a difference.   Community Blog & NewsOver the years, more than 600 Power Apps Community Blog Articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on building Power Apps. On the Power Apps Community Blog, read the latest Power Apps related posts from our community blog authors around the world. Let us know if you would like to become an author and contribute your own writing — everything Power Apps related is welcome!   Power Apps Samples, Learning and Videos GalleriesOur galleries have a little bit of everything to do with Power Apps. Our galleries are great for finding inspiration for your next app or component. You can view, comment and kudo the apps and component gallery to see what others have created! Or share Power Apps that you have created with other Power Apps enthusiasts. Along with all of that awesome content, there is the Power Apps Community Video & MBAS gallery where you can watch tutorials and demos by Microsoft staff, partners, and community gurus in our community video gallery.   Again, we are excited to welcome you to the Microsoft Power Apps community family! Whether you are brand new to the world of process automation or you are a seasoned Power Apps veteran. Our goal is to shape the community to be your ‘go to’ for support, networking, education, inspiration and encouragement as we enjoy this adventure together!   Let us know in the Community Feedback if you have any questions or comments about your community experience.To learn more about the community and your account be sure to visit our Community Support Area boards to learn more! We look forward to seeing you in the Power Apps Community!The Power Apps Team

Top Solution Authors
Top Kudoed Authors
Users online (4,117)