Get Exchange Mail - DASL query returns nothing but simple filter does

I found Get Outlook Mail Messages Filter Filter By Subject and it helped me make a DASL filter for my Get Exchange Mail Message activity. However it returns 0 email messages no matter how I use it. Can anyone explain why it does not find anything, but the simple filter does? Does DASL not work with office 365 exchange?
Using UiPath.Mail.Acivities 1.15.2 or 1.16.0-preview I get the same result.

Does not work, these find nothing.
“@SQL=urn:schemas:httpmail:fromemail = ‘abc@xyz.com’”
“@SQL=urn:schemas:httpmail:fromemail LIKE ‘%xyz.com%’”
“@SQL=urn:schemas:httpmail:subject LIKE ‘%Shipping%’”
@SQL”+Chr(34)+“urn:schemas:httpmail:fromemail”+Chr(34)+“like ‘%xyz.com%’”

Works.
from:abc@xyz.com
“subject:Shipping Orders”

Hi @trwalsh,

Can you try deleting all quotation marks and re-typing them? if you copied them directly from the forum, they may also see them as a character.

Regards,
MY

I had noticed the copied " and ’ were the special characters and had re-type the whole thing. Same result with a freshly internally typed string, nothing returns but its simple filter equivalents return messages as expected. Thanks for the response.

After extensive searching I have come to the conclusion DASL and JET queries are not supported in the ‘Get Exchange Email Messages’ but are supported in Get Outlook Mail Messages.

Documentation on UIPath shows only AQS search with this activity. Get Exchange Mail Messages

Though AQS seems to accomplish what I am attempting, you just need to be less specific in the search. AQS search

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.