cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

How to send multiple List Items in single email?

Hi Flow Community,

 

I have been trying to create a flow which will allow me to notify users when a task date is due.

So far, i have managed to create a condition which knows to send an email alert to the assignee when the date is due.

 

However, i have recieved feedback that users may prefer to have all due task in a single email because they do not want to receive an email for every single due item on the list.

 

So i ask Power Community, does anyone know how to set a step which picks all due task for specific assignee on the list and arranges them into an email?

 

Any form of help would be appreciated.

Thanks,

Tosin

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Tosyn_88,

 

You could use Create HTML table action to send emails that contain a full list of all the items from a previous step.

 

Please take the following flow configuration for a reference:

1.PNG

 

>Under the Get items action, adding the action Create HTML table. You could customize the columns with Custom enabled for the Columns field.

 

>In the Send an email action, select the dynamic content Output from the Create HTML table action, then enable Yes for the Is HTML field.

 

Please take a try with it on your side.

 

 

Best regards,

Mabel Mao

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

Hi @Anonymous @GabrielStJohn @v-yamao-msft

 


@Anonymous wrote:

Hi,

 

I was wordring if you have got response on this, as I am facing the similar problem.

 

I want to create a flow which does below when a item is created in List 1 : -

 

1. get Items from List 2

2. Filter Items based on condition ( if Unique ID of list 1 = Unique ID of List 2)

3. Send filtered items from list two for approval in a table format
4. Update approval status in List 1.

 

 

When I followed the abouve suggetion, I am able to reach till step 2 but at step three I am getting approval emails equal to the number of rows in created HTML table.

 

Please Help !

 

 




 

This has been resolved!

 

I used the "filter Query" advanced function within the "Get Items" action.

 

SolvedSolved

 

  1. Set Recurrence Trigger
  2. Get Items ---> Advanced---> Filter Query ----> ColumnName eq 'Value' or ColumnName.Value eq 'Value' (do not forget to add the value in single quotes.
  3. Create HTML Table ---->Map your Table Names to specific columns you want
  4. Send Email with Value from HTML Table
  5. Done

View solution in original post

22 REPLIES 22
v-yamao-msft
Community Support
Community Support

Hi @Tosyn_88,

 

You could use Create HTML table action to send emails that contain a full list of all the items from a previous step.

 

Please take the following flow configuration for a reference:

1.PNG

 

>Under the Get items action, adding the action Create HTML table. You could customize the columns with Custom enabled for the Columns field.

 

>In the Send an email action, select the dynamic content Output from the Create HTML table action, then enable Yes for the Is HTML field.

 

Please take a try with it on your side.

 

 

Best regards,

Mabel Mao

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.

Hi @v-yamao-msft

 

Thank you for the response, appreciate it 🙂

 

I will give this a try and let you know if it works.

 

Thank you

Tosin

Hi Again @v-yamao-msft

 

Thank you for this!!

 

It actually worked as expected but i have also run into another issue. The flow is sending me too many emails regarding the same issue rather than one. I think this is because of the apply to each condition i have put on the condition.

 

Do you have any advice of how to get around this because i am not sure if i can remove the apply to each loop as i want it to check all the rows on the list for the item status and then send a single email to the manager of all item status

 

So the flow looks like this;

RAG Status Flow.JPG

Hey, @Tosyn_88!

 

Thank you for posting to the Flow Community Forum! It appears you have found a solution to your issue! If you feel as though your issue has been solved and you are satisfied with one of the previous replies, please click "Accept as Solution" so that this thread will be marked for other users to easily identify!

 

Thank you for being an active member of the Flow Community!

 

-Gabriel

Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Hi @GabrielStJohn

 

Thank you for the follow up. I have gone part of the solution but not all.

 

I was wondering if it were possible to add a code to filter the table to only show specific items rather than the whole list.

 

It would really help as i am having to rely on the "Apply to reach" condition

Anonymous
Not applicable

Hi,

 

I was wordring if you have got response on this, as I am facing the similar problem.

 

I want to create a flow which does below when a item is created in List 1 : -

 

1. get Items from List 2

2. Filter Items based on condition ( if Unique ID of list 1 = Unique ID of List 2)

3. Send filtered items from list two for approval in a table format
4. Update approval status in List 1.

 

 

When I followed the abouve suggetion, I am able to reach till step 2 but at step three I am getting approval emails equal to the number of rows in created HTML table.

 

Please Help !

 

 

Hi @Anonymous @GabrielStJohn @v-yamao-msft

 


@Anonymous wrote:

Hi,

 

I was wordring if you have got response on this, as I am facing the similar problem.

 

I want to create a flow which does below when a item is created in List 1 : -

 

1. get Items from List 2

2. Filter Items based on condition ( if Unique ID of list 1 = Unique ID of List 2)

3. Send filtered items from list two for approval in a table format
4. Update approval status in List 1.

 

 

When I followed the abouve suggetion, I am able to reach till step 2 but at step three I am getting approval emails equal to the number of rows in created HTML table.

 

Please Help !

 

 




 

This has been resolved!

 

I used the "filter Query" advanced function within the "Get Items" action.

 

SolvedSolved

 

  1. Set Recurrence Trigger
  2. Get Items ---> Advanced---> Filter Query ----> ColumnName eq 'Value' or ColumnName.Value eq 'Value' (do not forget to add the value in single quotes.
  3. Create HTML Table ---->Map your Table Names to specific columns you want
  4. Send Email with Value from HTML Table
  5. Done
Anonymous
Not applicable

If you have the Send Email action within the apply to each section, it will send an email for each iteration.

I think you need the condition for including a row in the HTML table within the apply for each, but move the Send Email to just below, and send that table. Haven't tried it, just my first thought.

Hi @Anonymous

 

Thanks for the creative suggestion. I'd give it a go because this would go a long way in helping everyone.

 

Regarding what you said, can you clarify a bit more, i'm feeling slow today.

 

Are you saying;

Condition ---> Create HTML Table (Apply to Each) ----> Send Email

Anonymous
Not applicable

to want send a single approval email when adding multiple new items and to be approved all in a single mail


@v-yamao-msft wrote:

Hi @Tosyn_88,

 

You could use Create HTML table action to send emails that contain a full list of all the items from a previous step.

 

Please take the following flow configuration for a reference:

1.PNG

 

>Under the Get items action, adding the action Create HTML table. You could customize the columns with Custom enabled for the Columns field.

 

>In the Send an email action, select the dynamic content Output from the Create HTML table action, then enable Yes for the Is HTML field.

 

Please take a try with it on your side.

 

 

Best regards,

Mabel Mao


 

Hi Everyone,

 

I also encountered a similar scenario where I need the output from an 'Appy to each' to be sent as a HTML table in one single email.

I've tried initializing a variable (string and array type) at the top (before apply to each) then for each output in Apply to each I've told to append to the Global Variabe, however this is what I get for my 2 rows ( a@email.com and b@email.com) in apply to each:

When 'Append to String' is used, I get : a@email.comb@email.com 

When 'Append to Array' is used,  I get : ["a@email.com;b@email.com"]

                                                                ["a@email.com;b@email.com"]

I've also used set variable in the apply to each,but the outcome is expected,meaning that I get only the last row in my Global Variable , in this case b@email.com

 

Any suggestions would help

 

Thank you!

 

 

 

Vsolano
Regular Visitor

Hi Community,

I am currently facing a similar problem.
In my SharePoint list I recorded information from my employees and would like to send an email about all the information status per manager about all the employees assigned to each Manager.

I have a column named “Manager” and was created using the option Person.
There is another column that is named “Employee” and was also created as Person. Please take into consideration, all employees have a manager related in the list.

I was able to create a flow that sends all items through one email, however I would like to filter the information by specific manager and only include the employees information if the employee is assigned to that specific Manager in the list.

Thank you in advance for the support!
Veronica

Sorry to necropost, but is this still a valid option?  I've been doing just this and the email doesn't conform to HTML.  All the tags are visible.  The caveat is that in the Send Email action there is no longer an IsHTML option.

 

Does it matter that my HTML table contains content from a rich text multiline text box in SharePoint?

 

How is this done now?

 

Thanks

Hey @lukebrandt1 

The Send an email action from the Outlook 365 connector has been deprecated however in the outlook.com connector we can still find the "Send an email" activity , which holds the "Is HTML" boolean field.hope this helps!snippolcom.PNG

 
bhagyashree
Regular Visitor

Hi all, I'm trying to create a reminder flow that will inform owner based on Calculated date field (Next Review Date). So an action will be entered in a SharePoint list and based on the calculated date field (Review Date + 3 years - 1 day = Next Review Date) it will send the owner an email notification informing him/her that it is due for review. So lets say I have 10 tasks due for me in the list my flow will be sending 10 separate emails for each item. My issue is that I want to compile all these due items all in one email so that I don't have to sift through too many emails and I was wondering if anyone can inform me what I can change in my flow to allow this. 

Note : Can't filter Calculated column in filter query so used "compose."
Here is a picture of my flow:flow error.png

@bhagyashree Were you able to fix your flow? I am trying to do the same thing and users are different emails instead of one email with a list. 

@Lady_Lustitia trying to do something very similar, got any solution yet?

KSable
New Member

Please send me any particular videos.

Anonymous
Not applicable

I have a similar issue and found this alternative solution. I'm still going to try and configure it, but here's the link for anyone with the issue. Solved: Compile multiple list items in one email - Power Platform Community (microsoft.com)

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,304)