web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating legal templat...
Power Apps
Suggested Answer

Creating legal template/document using Powerapps (the cheap-a** approach)

(1) ShareShare
ReportReport
Posted on by 71

Hello.

Please be so kind and help me in following matter:

1. I am currently faced with generating a legal template that needs to be filled with/completed with data that comes from a Powerapps Canvas app, which in turn is linked to a Sharepoint list. The data is contained partly in drop-down lists and partly in a (modern) table component (that has about 10 text columns and X amount of rows).

 

2. The outcome should be a document (preferably Word, but PDF is also accepted) that has the data filled in:

  • 2.1 The 1st page of the document is static, as it contains just some basic blah-blah legal text and text-data from the Powerapps's dropdown columns.
  • 2.2. The 2nd to X-th page is more dynamic and it should contain a table (header+rows with data) that should come from a selection (multiple selected feature is enabled in the intra-app table) made by the user in table in the respective Powerapp. (All columns are text ones.)

3. I can't add any PCFs (company policy) and I can't use the "Populate a Word Template" action in Power Automate as this is premium and company does not allow premium stuff (no connectors, Dataverse etc) due to cost reasons.

 

Now, I am able to bring some text data from my app to the 1st page of my Word template (of course via a Power Automate flow called by the PowerApp), but in the case of the selection (of the rows from my in-app table by the user), unforunatley I am not so lucky.

Can any of you please share some practical advice/recommendations if you were in such situations before? Should I build some kind of intra-(power)app HTML version of the Word-form using the "HTML text" option from the Powerapps editor? Should I build some kind of flow that parses JSON data that was collected from the app?

I'm really swimming in the depths of my knowledge and stress.

TLDR: I ask for your tehnical advice as I need to feel a Word template/form with dynamic data coming from a Powerapp - Canvas+Sharepoint - (both simple texts and selected rows in intra-app modern table)

THANK YOU IN ADVANCE!

Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,162 Super User 2026 Season 1 on at
     
    Html - > Word -> PDF that is the best & scalable solution. 
     
    However we can approach another solution.
     
    • Create a screen.
    • Use Form control or container
    • If use form container design the form how your page should like what are the fields to be added & repeat section (use gallery)
    • Then Use PDF function to generate the PDF & you can download the PDF too.
    •  
    Design Form - This should be as per your logics you want but below videos can give you some ideas.
     
    Implementation Video (PDF) 
    Limitation
     
    If you want PDF also contains the hyperlinks then PDF() will not give the expected results.
     
    Only the html conversion alone works in that case.
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • PA_Forum_User Profile Picture
    71 on at
     
    Thank you for your reply.
     
    I have tought about this approach (with the screen to PDF) but I initialy dismessed it due to the fact that the number of selected positions in my table can vary a lot (just a few or hundreds of them) and thus I though that getting them all to be visible in that one screen/ one PDF creation was not possible,
     
    However, in your reply you mentioned "& repeat section (use gallery)" than I am more than happy to check out the links you shared. Thanks for your input.
     
    PS: I don't have any links..just text and table-stuff.
  • MS.Ragavendar Profile Picture
    7,162 Super User 2026 Season 1 on at
     
    A quick follow-up to see, does the suggestion worked for you or still you were looking for any other approaches or assistance.
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,221 Super User 2026 Season 1 on at
    Hi @PA_Forum_User,,
    You can try this approach:
    • In Power Apps, use JSON(YourTable.SelectedItems) to collect and send the selected table rows as a Json string to your Power Automate flow.
    • In Power Automate, use the json() function to convert this string back into proper JSON (since Power Apps sends it as a text string).
    • Then, either use the Create HTML Table action or a Compose block to build your dynamic HTML table (which allows for custom styling or row-by-row formatting if needed).
    • Combine this HTML with your static content, and convert it to PDF using OneDrive’s Convert file action (which works well for converting HTML to PDF).
    This method uses only standard connectors, is flexible, and lets you fully control your output formatting. Worth a try!

    Please give the mentioned solution a try and let me know whether it works for you.
    If it solves your issue, feel free to mark this thread as answered.
    Please make sure to like the response!
    Thanks!
    - Hemanth Sai

  • Power Platform 1919 Profile Picture
    2,221 Super User 2026 Season 1 on at
    Hi @PA_Forum_User, Just checking in to see if my previous answer hit the mark or if there’s anything else I can help you with.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard