How to put not condition in Get Exchange Mail Message filter?

I want to filter to get one top mail using subject and body where body should not contain specific characters?

Please help?
Sample:
“subject:MIIn_AS_InvStatUpdt_Itm And body:Can not find document with documentID”

Subject should contain this text (MIIn_AS_InvStatUpdt_Itm) but body should not contain this text (Can not find document with documentID)?

Hi @anjasing

we can try with below expression in if condition!

item.Subject.Contains(“MIIn_AS_InvStatUpdt_Itm”) and item.Body<>(“Can not find document with documentID”)

Regards

Hi!

try like this!

“subject:welcome AND from:""john.smith@example.com”“”

For your reference

Regards,
NaNi

1 Like