cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Edrei1 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
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

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

 

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

Re: Dynamic table in Approval Flow

@efialttes Thanks the CR in a compose worked

Helpful resources

Announcements
Did you attend MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’ve streamed the digital event live, or you're watching on-demand, claim your attendee badge to sport on your profile.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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

Users online (5,209)