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

Create table with orders for each provider

Hi everyone,

I got one problem with my Flow.

The purpose : Send one email for each provider and every email contains informations from the provider and the table with the orders.

 

I got a table with the list of my providers (and sum(e_credit) which is the sum of the orders)

Then, I want to create a table with every orders from my provider (with each of the e_credit)

 

I have this piece of Flow :

FLOW.jpg

 

It doesn't work cause it adds a "each for" loop with my "create a table".

 

So, how can I do this Flow?

Then, how can I have dates instead of a number (I got 2 dates which are resulted in numbers)

Finally, Does it possible to format the html table? (make lines, bold characters...)

 

Thank you so much for everyone would try to help me,

 

Baptiste CRETIN

2 REPLIES 2
Dual Super User
Dual Super User

Re: Create table with orders for each provider

Hi @Bapt_69 

 

The apply to each is here because you are iterating on each item in the provider list. And from the provider list you are creating an HTML table for each order list. 

 

About the date format: This is a known issue with the excel connector. Two ways to solve this: 1. select the entire column along with the data in excel and change the datatype from date to plain text. 2. use the formula to convert the integer to a date time string : https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/10-MS-Flow-hacks-troubleshoots-wor...

 

About the HTML table: in  the action, you cannot directly change anything or customize the table. You can add some customization on the entire table output while ending in email etc. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Community Support Team
Community Support Team

Re: Create table with orders for each provider

 

Hi @Bapt_69 ,

 

Please check these threads and see if it helps:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Using-apply-to-each-create-HTML-table-an...

https://powerusers.microsoft.com/t5/Building-Flows/Variable-with-each-for-loop/m-p/369143/highlight/...

 

For more about format HTML table, please check this blog:

https://alextofan.com/2019/02/14/flow-how-to-change-the-style-of-your-html-table-in-flow/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,924)