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 Automate / Embedding dynamic cont...
Power Automate
Answered

Embedding dynamic content to Word documents through Power Automate

(0) ShareShare
ReportReport
Posted on by 26 Season of Giving Solutions 2025
I am building an invoicing program for a law firm in Canvas Apps.    The app has a "Create Invoice" button which creates an invoice in a word .doc format.   
 
I want to create dynamic rows based on the type of invoice,  as seen in the example below the total professional fees is split between 2 work categories ,  other invoices might have 4 categories, others might not have this so it would not be shown in the invoice.     Also some invoices might have discounts so a discount row would be added, the others with no discount would not have this row etc...
 
I created the calculations in power automate ,  I can insert static rows with the Populate Word Document function in Power Automate mapping to the Content Controls , but I don't know how to embed dynamic content.  
 
Can you give me some suggestions on how to do it ? 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,906 Most Valuable Professional on at
    The direction to take would be some HTML for the whole panel, which you woud have to code in Power Automate with any optional lines being conditional. Depending on how many "options" exist (if there were less three ot four for example), I would use multiple templates and conditional branches in the Flow.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful?
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,974 Moderator on at
     
    One thing you can do, is add a repeating section IN your word template. Then build an array. You will map the headers to the section, but map the array to the repeating control. As for things where its conditional to even have, you would leverage a Condition action to check if it needs to be populated or not, such as the Discount. If there is no discount, (which the condition would check), either populate it in the Yes side, or skip the control in the No side.
     
    Cheers

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard