web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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
    Re: Difficulty with automated reply removing specific recipients/mailboxes

    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
    on at
    Re: Difficulty with automated reply removing specific recipients/mailboxes

    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
    Re: Difficulty with automated reply removing specific recipients/mailboxes

    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,058 on at
    Re: Difficulty with automated reply removing specific recipients/mailboxes

    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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard