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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Expiry notification se...
Power Automate
Unanswered

Expiry notification sends multiple time

(0) ShareShare
ReportReport
Posted on by

Hi 

i have a document library with field "ExpiryDate" and "StakeHolders" (People and groups with multiple selection enabled ) i want to sent emails notification if the expiry date is equal to 90 days to the stake holders field associated with the record.

i have managed that but multiple emails have been sent by the system.  How do i consolidate it into one?

 

Please see the flow below.

171.jpg

Capture.JPG

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Expiry notification sends multiple time

    It looks like the flow is sending one email per item.  If you have the same stakeholders for two documents then they will get two emails.  Are you saying that stakeholders are getting multiple emails for the same document or multiple emails for different documents?  To send out a single email with multiple documents in it you would have to figure out a way to parse the list multiple times and send one email for each matching set of stakeholders.  That is going to be very difficult to do.

     

    An easier approach might be to start with a loop that builds an array of all the stakeholders.  Then a second loop that processes all the documents again one stakeholder at a time and sends an email for all the documents for that stakeholder.

  • rinu007 Profile Picture
    on at
    Re: Expiry notification sends multiple time

    Thanks Pstork, 

    "An easier approach might be to start with a loop that builds an array of all the stakeholders.  Then a second loop that processes all the documents again one stakeholder at a time and sends an email for all the documents for that stakeholder." 

     

    I am pretty new to this Can you show me an example?

  • rinu007 Profile Picture
    on at
    Re: Expiry notification sends multiple time

    hi It is sending multiple emails for different documents

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Expiry notification sends multiple time

    Hi @rinu007 ,

     

    If you want the flow to only send one email, you could move the send an email action outside the Apply to each.

     

    Best Regards,

    Alice

     

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

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard