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 / Email sent to non-spec...
Power Automate
Unanswered

Email sent to non-specified recipients

(0) ShareShare
ReportReport
Posted on by 6

I have set up a very simple flow for our organisation which looks for upcoming events in an individual's calendar, then sends a reminder email to event attendees 24 hours before the event.

 

The flow works perfectly apart from one small quirk...

 

The reminder email is only supposed to go to required event attendees. This is specified by putting the dynamic content block 'Required attendees' in the 'To' field of the email action. 

 

For some users, the reminder email is sent to the required attendees as intended, but the user (in this case, the event organiser) is also included in the 'To' field and receives a copy of the reminder email. 

 

Any thoughts as to why this might be?

 

Thanks!

 

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    I am afraid I do not have an answer for such particular behaviour, but  may I suggest a possible workaround.

    I believe your 'Required attendees' event dynamic output is string with 1..n email addresses separated by semicolons. Assuming 'Required attendees'  is stored in a string variable named 'RequiredAttendees', allso 'Organizer' is stored in its own string variable calld 'Organizer'... then you can use the following expression to remove Organizer email from 'Required attendees' if present:

     

     

    replace(replace(variables('RequiredAttendees'),variables('Organizer'),''),';;','')

     

     

    Please note variables are not strictly needed, i.e. you can replace both variables in the WDL expression and use the equivalent event dynamic values instead
    Please also note this is not the only workaround, you can also convert 'Requred Attendees' into an array by means of split(), remove the organizer by means of a 'Filter array' action block, and convert back the array into string by means of join()... and several other alternatives also.
    Hope this helps




  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi,

     

    They have to be in that email group, or it wouldn't go to them. Can you look at the RUN itself and then look at that action and get the list of email addresses.

     


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • jmac_lcon Profile Picture
    6 on at

    Hello,

     

    I've taken a look at the RUN and the 'To:' field in the email includes both the required attendees and the personal email of the organiser.

     

    When building the flow I used a preset called 'Required attendees' under the Dynamic Content menu. Any idea why it might be including the organiser too?

     

    Thanks

  • jmac_lcon Profile Picture
    6 on at

    Thanks for responding! 

     

    This sounds very complicated, but I trust it might work!

     

    Whereabouts should I include this expression? In the 'To:' field of the automated email? And if so, do I also need to include the Dynamic Content item 'Required attendees'? 

     

    Thanks

  • efialttes Profile Picture
    14,756 on at

    Hi! The expression manipulates the list of semicolon separated emails, by removing the organizer if present. You should add it to the 'To' input field.
    Please note te expression is variables based, I am assuming you previously stored both 'Requied attendees' and 'Organizer in a couple of variables by means of 'Initialize variable' action. 
    Hope this helps
    ==========

  • jmac_lcon Profile Picture
    6 on at

    Hi again! 

     

    I have not previously stored 'Required attendees' and 'Organizer' as variables... I was using a menu called 'Dynamic Content' that appears as part of the flow creator.

     

    Is there any online guidance for how to use the 'Initialize variable' action?

     

    Thanks 

  • efialttes Profile Picture
    14,756 on at

    Hi @jmac_lcon 
    Using variables is not needed.
    You can build an WDL expression by adding dynamic content instead.
    Please have a look to this videotutorial
    https://www.youtube.com/watch?v=gugbtAZg0bg
    Hope this helps
    ==========

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard