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 / Difficulty with automa...
Power Automate
Unanswered

Difficulty with automated reply removing specific recipients/mailboxes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

Looking for a little help on this flow. First time creating a flow so a complete novice. 

 

Essentially I want to create an automated response mail but removing different mailboxes/individuals including the origin mailbox. I have included below how it looks so far but doesn't seem to function as I expected. Users are on the to and cc on the emails. 

 

 

Automate Flow.jpg

 

Any advice would be appreciated. 

 

Thanks. 

Categories:
I have the same question (0)
  • KvB1 Profile Picture
    1,596 on at

    So you want: the from, to and cc fields to be compared with the exclude variable. If ANY of these fields is in the variable, nothing happens. Is this correct?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah, I want it to check for any of the excluded variables and remove them from the reply. 

     

    So I receive an email from 'ERS' sent to Name, Name, Name, farewell team. facilities, etc but I want to exclude ERS, farewell team, facilities, etc from the response. 

  • KvB1 Profile Picture
    1,596 on at

    Okay,

     

    Here is what you could do:

    Initialise a new variable array, which collects the mail addresses from those fields (to, from, cc).
    Use the append to array variable action to fill it

    Then, make a compose action, and use intersection(variables('tofromcc',variables('Exclude')) to see which items are in common of both arrays.

     

    Then, use a filter array action. You will filter the array holding the to, from and cc, using: contains(outputs(ComposeIntersectionAction),item()) on the left, and false on the right.

    The output of this will be an array of mail addresses that ARE in the 'to, from, cc' array, but NOT in the 'exclude' array. So you would want to use those for mailing, right?

     

    You would probably need to tinker it a bit so that its accepted as a string of mail addresses sepperated by semicolumn in the way outlook wants it, but it should be fine

  • VictorIvanidze Profile Picture
    13,079 on at

    Your task looks a bit illogical.

    When you reply (not reply to all) the only recipient is a sender of original mail.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard