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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Populate Word Document...
Power Apps
Unanswered

Populate Word Document from Canvas PowerApp

(0) ShareShare
ReportReport
Posted on by 4,838 Moderator

Hi everyone,

 

I would like to have a document generated using a template. (I know this will require power-automate)

Since I haven't done anything as of this type yet, need a response at earliest for implementation.

List of controls I have in my Canvas App are,

 

1. Few textboxes, labels, dropdowns.

2. I also have gallery that represents a grid

3. Also I have a gallery within a gallery which holds lookup records.

 

How can I achieve this with a click of a button ?

Any reference or code would be helpful.

Thanks

Categories:
I have the same question (0)
  • JayMagness Profile Picture
    1,663 on at

    HI I have note done this but this will take a few things.

     

    1) powerapps is not a data system and in order to do a form fill in word you need to have a data source.

    2) I would use powerapps to fill a SharePoint list, then use flow to create the word document and fill the document with the data form the list out of sharepoint.

     

    I am sure there are other ways people will have but this is the direction I would go.

     

    Jay

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Ethan_R 

    I have used the following method to print my letters out of MS Access instead of MS Word for the last 3 years.  There is a way to do it with Power Automate but that requires a premium connector.  Here is a post on how to do it.   https://tahoeninjas.blog/2020/03/13/generate-word-documents-from-a-template-using-power-automate/ .  

    Since I came to PowerApps from MS Access web apps,  I was more comfortable with this method.

    Create a report in Desktop access.

    1. Open Desktop Access and create a linked table to your SharePoint list. 
    2. Highlight the table and create a query that you can use to control which data you want to use in your report, Ie. set the date range, etc.  Save and name the query.
    3. Highlight the query. You can then use the Create Report feature to create your report/merge and print it from there. 
  • JayMagness Profile Picture
    1,663 on at

    Ok great this is another way as you say, also since word is not a requirement you could look at using.

     

    New Screen --> Portrait or Landscape Print then you can do it all out of powerapps.

     

    just another thought.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Thanks @JayMagness  and @Drrickryp  will try this out.

  • pallavi41 Profile Picture
    2 on at

    Can you please share how you did that?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @pallavi41 ,

    Here's what I did,

    1. I used a button to trigger a instant cloud Flow (PowerApps V2) by passing the Record GUID for which I am working actively on the Screen.
    2. Kept a loading dialog for the flow until I get response back from the cloud flow (either success or fail will terminate loading dialog)
    3. I carried out all complex record, related and lookup handling in my flow with several condition and later generating the Document with the template. Later, storing it to the SharePoint.
    4. Lastly, I passed the response if success or failure back to PowerApps.

     

    Hope this helps

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard