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 Apps / Avoid duplicate email ...
Power Apps
Unanswered

Avoid duplicate email addresses while automating email send outs

(0) ShareShare
ReportReport
Posted on by

Hi!

I am trying to set up a flow that will send a reminder email to all 'site owners' (see first image below) on a sharepoint list. However, before sending out the email I want the flow to check if there are duplicate email addresses in the column 'site owners'. If yes, then they must be skipped such that each site owner only receives one email.

SKamat_1-1621429598205.png

 


This is what I have so far.

SKamat_0-1621429305047.png

 

Does any one have any suggestions for how I can set up a duplicate check with a condition that checks for email addresses that appear more than once and eventually sends out out ONLY one email to each site owner.

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous The SendMail will send only one email even if the emails are repeated in the To, Cc or Bcc. I've tried this from PowerApps and it works.

  • Community Power Platform Member Profile Picture
    on at

    Hi @CNT ! I tried that and it did not work, it sends out the email to an address as many times it appears in the list. Image below is an example of how it was set up. Under "Contacts"  email addresses are listed.

    SKamat_0-1621497022765.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous OK I know the issue, you are not sending one email but one email for each item. So you have to filter your Items before you hit the Apply to Each or if it is just a generic message, you could build a string with all the email addresses and then send them as one email.

    I did a test as seen below, sending the email to the same address 3 time, but received it only once.

    CNT_0-1621499749640.png

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks for checking. I tried to run it in a similar way and received an error. 

    SKamat_1-1621510383182.png

     

    "Contact" is the email address value fetched from the sharepoint list. This has to be included such that apply to each function can work

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous The way you are doing, surely there will be multiple emails b'coz your are looping thorough your entire  "Contact" and sending an email to each contact. You will have to get the distinct records. Please look at this article that explain how to do it, https://www.c-sharpcorner.com/article/get-distinct-count-from-sharepoint-list-item-using-power-automate/

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard