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 / How to iterate emails ...
Power Automate
Unanswered

How to iterate emails by negative query? (e.g. "sender email Not EndsWith 'xyz' ")

(0) ShareShare
ReportReport
Posted on by 1

I want to apply an action on each email NOT containing specific text.

In p-code, it's something like:

 

 

 

 

for each email in <Get Emails V3> :
 if "From:" Not(EndsWith('xyz')) :
 create contact ( email=sender-email, category="abc" )

 

 

 

for each email in <Get Emails V3> :

   if "From:" Not(EndsWith('xyz')) :

        create contact ( email=sender-email, category="abc" )

 

I can't find out how to write the expression for Search Query field of Get Emails v3.

 

I'm new to Flow. 

Although i'm an excel power user, I can't find how to phrase the condition in Flow.

I couldn't (yet) find the relevant documentation / examples.

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,181 Most Valuable Professional on at
    Re: How to iterate emails by negative query? (e.g. "sender email Not EndsWith 'xyz' ")

    Hi @abunamur,

     

    I think this would be possible by using a condition and the does not end with operator. Below is an example of how you could use this with the from field.

     

    doesnotendwith.png

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard