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 / Send Emails for Each I...
Power Automate
Unanswered

Send Emails for Each Item from Filter Array

(0) ShareShare
ReportReport
Posted on by 28

Hi all,
I have a Sharepoint list that includes names, tasks, emails, and check-in times, as well as other columns not relevant to this issue. The check-in time column is a calculated field created from individual date, hour, and minute columns, so it can't be filtered directly through a filter query.
After using a filter array to filter for items where the current time is greater than the check-in time, I want to send an email for each item/person past their check-in time. Note that I also want the email subject and body to contain dynamic content, such as the task.
I originally tried using a filter array, and then directly going into an "apply to each" for each list item and sending an email. However, when the filter array didn't contain any items (i.e. nobody was past their check-in time), the flow never completed - it just ran endlessly. Because of that, I added a condition to only send an email if the filter array wasn't empty. The resulting flow looked like this.
Unfortunately, I have two problems now:
1. The flow never stops "running" and doesn't send any email notifications to individuals past their check-in times. (Note: the flow runs successfully if nobody is past their check-in time when it runs).
2. After using the filter array, I no longer have access to dynamic fields (such as the "tasks" field) in the email body.

 

I'd really appreciate any advice/insights!

 

image.png

Categories:
I have the same question (0)
  • Verified answer
    v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    Hi @JWallsKC ,

     

    I have checked your snap and I think your current flow should work smoothly. But may I know which step does the flow exactly stuck on?

    If the flow stuck at "Send an email notification (V3)" action, I'm afraid it touch the connector throttling limits. Refer to below link for further information:

    Mail - Connectors | Microsoft Learn

    It means each connection can send only 5 mails within 5 minutes.

     

    Advice is to replace it by "Send an Email (V2)" .

    vwenjuanmsft_0-1684218655217.png

     

    As for your second issue, it's by-design feature. We can use function to call out the field we want:

     

    item()?['changetoyourcolumnname']

     

    vwenjuanmsft_1-1684218883874.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • JWallsKC Profile Picture
    28 on at

    Thank you! I really appreciate the tips. Unfortunately, I'm still having the second issue. I can't use the expression "item()?['changetoyourcolumnname']" for the email addresses, because 'email address' isn't an actual column. It's connected to the "Name" column. The name column contains their Outlook contact information, including their email address, among other details. I usually use the dynamic content feature to reference the email, but can't seem to do that when using a filter array. Any work-arounds for this?

     

    JWallsKC_1-1684256150210.png

     

     

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    Hi @JWallsKC ,

     

    Double click on your dynamic content to focus on it and press Crtl+C to copy it.

    vwenjuanmsft_0-1684315719390.png

    Switch to Expression bar and paste it. Delete the highlight part, you will get the function which you can use to call it in Filter array. 

    vwenjuanmsft_2-1684315799207.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • JWallsKC Profile Picture
    28 on at

    Thank you! That worked. And yes, you were correct that it was running into the connector throttling limits. I switched it over to "Send an Email (V2)", and it works great.

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