cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Edrei1
Level: Powered On

Dynamic table in Approval Flow

Is it possible to create a dynamic table in an Approval Flow email? I'm trying to create an approval flow that sends an order summary with order line items in a table for Approval. The documentation I've seen on how to create a table using Markdown seems to only work for a fixed size table, but I don't know ahead of time how many rows the table is going to consist of  

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: Dynamic table in Approval Flow

Hi!

You already managed to add a static table using Markdown from a variable into your approval, right? If so, it should be possible also to provide your flow the logic to generate a dynamic table and store it in that same variable.

Hope this helps 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Highlighted
Dual Super User
Dual Super User

Re: Dynamic table in Approval Flow

Hi
There is an old trick to add CRs, not sure if it will work here.
Add a Compose action block, hit Enter key. Whenever you want to add a CR, and assiming the new Compose is called 'Compose CR', just combine in the same expression the function concat() and the Compose CR result: outputs('Compose_CR')

Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Dynamic table in Approval Flow

Hi!

You already managed to add a static table using Markdown from a variable into your approval, right? If so, it should be possible also to provide your flow the logic to generate a dynamic table and store it in that same variable.

Hope this helps 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Edrei1
Level: Powered On

Re: Dynamic table in Approval Flow

@efialttes I haven't managed to even put the static table in a variable because the documentation requires a CR at the end of each row (See screenshot  of documentation below)and I'm not sure how to do that in a variable, if I try to select an attribute of my Order line item from the Dynamic content, my approval message gets wrapped in an Apply_to_each control meaning I'd be sending multiple email  for each row in the table (see screenshot below)Approval.PNGMarkdown Table.PNG

 

Highlighted
Dual Super User
Dual Super User

Re: Dynamic table in Approval Flow

Hi
There is an old trick to add CRs, not sure if it will work here.
Add a Compose action block, hit Enter key. Whenever you want to add a CR, and assiming the new Compose is called 'Compose CR', just combine in the same expression the function concat() and the Compose CR result: outputs('Compose_CR')

Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Edrei1
Level: Powered On

Re: Dynamic table in Approval Flow

@efialttes Thanks the CR in a compose worked

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,863)