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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple Notification ...
Power Automate
Answered

Multiple Notification Emails from Flow

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have a flow that seems to be misbehaving, the flow is linked to a Sharepoint list which contains a list of documents, the name, the date issued, a URL for the document and so on. In my flow which runs at 17:05 each day, it gets the list of items from the SharePoint list, and looks to see if the valid from date is empty (if so it does nothing), it then uses the list of entries which have a date in the valid from entry and checks to see if the date it is valid from is the same date as today. If so it then sends an email and a message to a teams group to tell them a new document has been issued and they should read it and sign a document saying it has been read (our management of change process).

 

This works well, except for some reason it fires off multiple emails (which are the same) every time it is triggered. It is not that there are multiple items in the list that have the date as today, but rather it sends the same notification multiple times in the short window.

 

Can anyone help me try and work out what is going on with this?,

 

Many Thanks!

FlowError.jpg

Categories:
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @TravisH 

    Hi there!

     

    I'm not 100% certain, but I think it's the "Apply to Each" that's messing with you.

     

    Maybe try changing the "if Yes" action step to do something like set a variable to "Something changed" and then move the Teams and eMail bit outside of the Apply to Each.  And then you can use the variable as the body of the messages...or not.

     

    Keep us posted.

     

    -Ed-

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

    Hi @TravisH ,

    It is because there are multiple items meet the condition.

    For each item, it will send a email.

    I suggest you use 'Filter array' here.

    The expression in condition is :

    empty(body('Filter_array')) is equal to true

    Capture4.PNG

    Best Regards,

    Community Support Team _ Zhongys

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

  • TravisH Profile Picture
    4 on at

    Thanks for the response, just to clarify with your example @v-zhos-msft ,am I right in thinking that the first filter array is looking through the list of items and then compiling an array of entries where the valid is equal to today (or presumably empty), then the next stage is going through that, and checking to see if it is empty and going from there.

     

    Would the array be populated with empty entries if you are filtering it based on the document valid date?

  • TravisH Profile Picture
    4 on at

    Also, should the send an email be in an apply to each that references the body of the array. Reason I ask is that flow is automatically moving it to an Apply to each section

  • Verified answer
    v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @TravisH ,

    In my flow, I use the 'Filter array' to get the items which meet the condition 'valid from date' is equal to today.

    Then use the Condition to check if the output of 'Filter array' is empty.

    If yse, so there is no item meet the condition('valid from date' is equal to today.), do nothing.

    If no, just send an email, don't need apply to each.

    Best Regards,

    Community Support Team _ Zhongys

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

  • lcdelgado Profile Picture
    379 on at

    Hello! I have the same situation but my case its different, I have a list of License and certification with expiration date, also I have calculated columns for 30, 60, 90, 120 days remaining days. The flow its working well but it sends me the same email 6 times, that's the same entries I have on the list. In my Filter array I have from value, 30 days remaining column is less than or equal to this formula: 

    formatDateTime(addDays(utcNow(), -30), 'yyyy-MM-dd')
    I don't know what else to do at this moment 

    here is my Flow:

    lcdelgado_2-1666206032293.png

    lcdelgado_3-1666206100232.png

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard