Get Outlook Mail Messages - Compound Filter Condition


Trying to filter messages from a specific sender with a subject containing specific text. I tried the below option but no results fetched. While each condition gives results, but the combo does not.

“[SenderName] = ‘xxxxxx’ AND @SQL=urn:schemas:httpmail:subject like ‘%YYYYYY%’”

Any clue will be helpful.

Thank you,


Please try this

"@SQL=urn:schemas:httpmail:fromemail LIKE '' AND urn:schemas:httpmail:subject like '%YYYYYY%'"


"@SQL=""urn:schemas:httpmail:fromemail"" LIKE '' AND ""urn:schemas:httpmail:subject"" like '%YYYYYY%'"



Use the below filter expression.

"[From] = '' AND [Subject] LIKE '%specific_text%'"

Or you can check the below thread.

Hope it helps!!

Both of them did not work. They did not give any error also.

I am using the above documentation page to work on the filter mechanism. In this one, From contains only a name and not email address. When your filter condition is specified, I get the error as - Get Outlook Mail Messages: Condition is not valid.

I have just started learning using UiPath Studio X. I tried using if condition and it works for subject of email, but not sender email address. Really don’t know why? Pls help.