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

de‑duplicate organisers

(0) ShareShare
ReportReport
Posted on by 453
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
    679 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.
  • Verified answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 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!
     
  • Jap11 Profile Picture
    453 on at
    Thank you @Kalathiya - that's exactly what I had in mind.
     
    Out of curiosity, do you know if it would be possible to include multiple meeting rooms in the same flow? Say we have 3 different rooms on site, and rather than creating the same flow 3 times, have it all merged into one and it keeps to the single email.
  • Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @Jap11
     
    Yes, you can use Get calendars action to retrieve all the calendar and use it. 
     
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard