web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding Multiple Items ...
Power Automate
Unanswered

Adding Multiple Items to an Email

(0) ShareShare
ReportReport
Posted on by 115

Hello,

 

I have a power automate that sends an email to our technician for all the equipment that is due within the next 30 days. But it sends a separate email for every piece of equipment that is due. 

 

Is there a way that I can compile all of the equipment that is due and send it in one email? My current flow is below, please let me know if you need any clarification on anything.

 

CheddahChase_0-1712690472073.png

 

 

Thank you in advance. 

Categories:
I have the same question (0)
  • Tomac Profile Picture
    3,948 Moderator on at

    Rather than using a loop, it would be more efficient to use Filter Array on the returned SharePoint items and then format the output as an HTML table (Create HTML Table action) and send that content via email.

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @CheddahChase 

    First, use a filter query in your Flow instead of the condition.

    Here is a great reference on creating a filter query.

    I suggest creating an HTML table from the filtered data from the Get items action (very easy).

    Here is a blog post on using the Create an HTML table action.

    The blog post includes a step for styling the table - you can ignore that step. 

    Then, send a single email and include the HTML table in the message body.

     

    If you need more help, please let me know.

     

  • CheddahChase Profile Picture
    115 on at

    Hello @ScottShearer,

     

    Thank you very much for your help. Everything worked. I have one more question though, I am trying to format the date in the Select function. Do you know how I can do that?

     

    It keeps popping up with an error because I cannot add the dynamic content from the get items. (I am trying to do this: 

    formatDateTime(items('For_each')?['field_7'], 'MM/dd/yyyy')
     
    Thank you. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard