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 / Use Condition to filte...
Power Automate
Unanswered

Use Condition to filter emails based on Sender or CC Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

My scenario is: When an email is received in the mailbox, I want it to create a SharePoint item based on the Condition that the Sender is internal (i.e. comes from an internal domain) and certain people aren't CC'd.

 

The Condition I'm using is below. In the value field, I've set the email address as a string, e.g. string('jamesbond@test.com.au'). However, when testing the flow I'm receiving the below error every time.

 

Any help would be greatly appreciated! Thanks

 

Screenshot.png

 

errormessage.png

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at

    You have to check if CC addresses collection  is not empty.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VictorIvanidze ,

     

    Thanks for that. I thought of an easier way to do this, rather than filter according to users what I really need to do is check if the user has an Office 365 account: if so go down path 1, if not go down path 2.

     

    I've come up with this to use the Search for Users function but stuck at where to go from there. Any thoughts?

     

    Screenshot (2).png

  • VictorIvanidze Profile Picture
    13,079 on at

    Hi @Anonymous, I think it's a wrong way. As far as I know "Search for users (V2)" doesn't allow you to place several values to "Search term" field.  It means you have to execute the search as  many times as many addresses are in CC. Inacceptable, IMHO.

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

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard