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 / de‑duplicate organisers
Power Automate
Unanswered

de‑duplicate organisers

(0) ShareShare
ReportReport
Posted on by 388
I have a scheduled flow which gets calendar view of events from a meeting room, then an apply to each which emails each of the organisers of those events from the day. Purpose is to remind organisers to cancel the room booking if they no longer require it.
 
However, if someone has booked the meeting twice in a day, I don't want to email them twice.
 
This is what i have so far which works, expect for sending an email to an organiser twice.
 
Is there a way to only email each unique email address, for example?
 
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305 on at
    Hi Jap11,
     
    There are options to achieve this. You can use data operations such as a Select to get a unique list of organizers. Then query the events per organizer and have e.g. the events copied into a HTML table that can be used in the email.
  • Kalathiya Profile Picture
    954 on at
    Hello @Jap11
     
    Yes, You can follow below steps to do: 
     
    #1.  First, I used a Select action to pull just the organiser email addresses from the calendar events.
     
    #2. Then, Add Compose action and write below expression find the unique organizer. It will give the list of unique organizer. 
    union(body('Select'),body('Select'))
     
    #3. Then, Add an Apply to each on the output of that Compose action.
    #4. Add Filter Array action.
    #5. After that, Add Create HTML table  action to format the bookings, mapping only the columns I wanted in the email (like subject, start/end time, and location).
    #6. Add Send an email (V2) action, set it to HTML, and included the table in the body.
     
    To: Write below action in expresssion:
    items('Apply_to_each')
     
    <html>
    <head>
    <style>
    table {
        border-collapse: collapse;
        width: 100%;
        font-family: Segoe UI, Arial, sans-serif;
        font-size: 13px;
    }
    
    th {
        background-color: #f3f2f1;
        color: #323130;
        text-align: left;
        padding: 8px;
        border: 1px solid #d2d0ce;
    }
    
    td {
        padding: 8px;
        border: 1px solid #d2d0ce;
    }
    
    tr:nth-child(even) {
        background-color: #faf9f8;
    }
    
    tr:hover {
        background-color: #edebe9;
    }
    </style>
    </head>
    <body>
    
    <p>Hello,</p>
    <p>Please review the following room bookings for today and cancel any that are no longer required:</p>
    
    @{outputs('Create_HTML_table')}
    
    <p>Thank you.</p>
    
    </body>
    </html>
    
    All Actions:
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 392 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 210 Most Valuable Professional

Last 30 days Overall leaderboard