cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Dual Super User III
Dual Super User III

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 III
Dual Super User III

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
Highlighted
Dual Super User III
Dual Super User III

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
Advocate I
Advocate I

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 III
Dual Super User III

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

Highlighted
Advocate I
Advocate I

Re: Dynamic table in Approval Flow

@efialttes Thanks the CR in a compose worked

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (10,767)