Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Use Condition to filter emails based on Sender or CC Error

(0) ShareShare
ReportReport
Posted on by

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

  • VictorIvanidze Profile Picture
    VictorIvanidze 11,853 on at
    Re: Use Condition to filter emails based on Sender or CC Error

    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.

  • Re: Use Condition to filter emails based on Sender or CC Error

    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
    VictorIvanidze 11,853 on at
    Re: Use Condition to filter emails based on Sender or CC Error

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard