Hi there, sorry if this is a silly question, I’m new!
I am trying to filter emails by subject and if they have a flag on them. As far as I can work out, the following code should work, but I keep getting ‘end of expression expected’ error:
“@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)”
Can anyone please explain why I might be getting this error? It has been bothing me for a long time! Thank you!
The real subjects have company sensitive information and so I’m not going to screenshot. The string is written inside the ‘filter’ section of ‘get outlook mail messages’ activity and that is all.
"@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)"
So, I tried the following and it didn’t instantly get an error in the filter box:
“@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)”
I am now getting a ‘parse error’ when I’m running it though…