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 ?