cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bapt_69
Helper I
Helper I

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
yashag2255
Dual Super User II
Dual Super User II

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!

v-bacao-msft
Community Support
Community Support

 

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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (46,214)