cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Append/Consolidate HTML Tables for summary email outside of DoUntil loop

My flow fetches a distinct list of all SalesReps and then uses a DoUntil loop to iterate through that SalesReps items in a Sharepoint List, and then builds an HTML table of these combined items and send each SalesRep a single email with all of their items in the body thereof.

 

What I'd now like to do is send the Sales Manager a single email, containing ALL SalesReps items in a single table.

 

Using a second CreateHTMLTable for the SalesManager doesn't work because it overwrites the contents with that of the last SalesRep that was iterated. I was hoping to find something like an AppendHTMLTable. I've also had a quick look at JOIN, but it doesn't seem to allow me to pass a table to it.

My flow currently looks like this:

SalesMngrMail.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Append/Consolidate HTML Tables for summary email outside of DoUntil loop

Hi @wi11iamr ,

 

Do you want to send an email to the SalesManager with a summary of all the info from the list?

 

I am afraid that you may need to add another Create HTML table action outside of the Do-until loop then send the email with the output the html table. Please take a try with it.

 

By the way, adding the action Append to HTML table might be a good addition for Flow, please feel free post your idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

 

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

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Append/Consolidate HTML Tables for summary email outside of DoUntil loop

Hi @wi11iamr ,

 

Do you want to send an email to the SalesManager with a summary of all the info from the list?

 

I am afraid that you may need to add another Create HTML table action outside of the Do-until loop then send the email with the output the html table. Please take a try with it.

 

By the way, adding the action Append to HTML table might be a good addition for Flow, please feel free post your idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

 

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

View solution in original post

Highlighted
Helper III
Helper III

Re: Append/Consolidate HTML Tables for summary email outside of DoUntil loop

Thansk @v-yamao-msft , I followed your advice and after my DoUntil loop, I simply added:

1. Get Items for All Records (as opposed to filtering within the DoUntil for each individual SalesPerson)

2. Select All

3. Create HTML Table

4. Send Email

 

I've also regsieterd the idea to be able to append to an HTML Table - it can be found at https://powerusers.microsoft.com/t5/Flow-Ideas/Append-to-an-HTML-Table/idi-p/268155

 

Highlighted
Frequent Visitor

Re: Append/Consolidate HTML Tables for summary email outside of DoUntil loop

I am also struggling on same kind of setup , please can you help me to consolidate items assigned to same person and send an email to him.

 

 

 

 

Highlighted
Helper III
Helper III

Re: Append/Consolidate HTML Tables for summary email outside of DoUntil loop

Hi @Sk97 , it's a bit difficult to help you with any further detail of your flow.

Using the recommendation from the solution in this topic, below is my final flow that I put together. Hopefully this can give you some pointers on how to fix yours.

wi11iamr_0-1598401763450.png

wi11iamr_1-1598401813426.png

wi11iamr_2-1598401828864.png

 

 

 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (6,541)