Error when filtering outlook messages in the 'Get outlook mail messages activity' C#

Hi all,
I am having issues filtering emails with the ’ Get outlook messages activity’. I am filtering the emails by subject and looking for emails where the subject starts with the string “New Policy”. I got this expression from the uippath documentation but it doesn’t seem to be working for me, this could be because I am using C# instead of VB. Here is the expression i tried and the error I got
Expression: “@SQL=”“urn:schemas:httpmail:subject”" like ‘%New Policy%’"
Error:

Other expressions that match the whole string without using the ‘like’ keyword work fine for example the expression “[Subject] = ‘Action Required on your OneAmerica Application - DO NOT REPLY’” throws no errors any help would be greatly appreciated.

@anan.deneke

for c# try this

"@SQL=\"urn:schemas:httpmail:subject\" like '%New Policy%'"

cheers

1 Like

Thank you so much, that worked!

1 Like

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