Email filtering with message flag?

Hi there,

I am trying to add a filter to my mail task and I can see that a previous example has:

and urn:schemas:httpmail:messageflag IS NULL)"

on the end of it. My question is, how is it that I can add a message flag onto this? Would I need to add a new package to UiPath?

Thanks for your help.


May I know with which we are trying to filter
Is it like subject, from address or which one


Hey, sure, on the Get Outlook Mail Message ‘filter’:

“@SQL=((urn:schemas:httpmail:subject like '%”+ subject1+"%’ or
urn:schemas:httpmail:subject like ‘%"+ subject2+"%’ or
urn:schemas:httpmail:subject like ‘%"+ subject3 +"%’ or
urn:schemas:httpmail:subject like ‘%"+ subject4+"%’) and urn:schemas:httpmail:messageflag IS NULL)" etc