How to filter emails by subject

hey everyone, I’m working on my graduation project using UiPath and kinda new to it.
so I wanna filter emails by subject and tried to use the same filter used in ‘UiPath RPA associate tutorials’ which is ( “@SQL=”“urn:schemas:httpmail:subject”" like ‘%[“+in_IncidentNumber+”]%’") and changed the argument ‘in_incidentNumber’ with my own argument that contains the subject that I wanna filter but that didn’t work
what should I do then ?

Hi @Mohammad_Allan

Try this

@SQL="urn:schemas:httpmail:subject" LIKE '%"+in_IncidentNumber+"%'

Regards,

no it just gives this error " Argument ‘Filter’: BC30201: Expression expected.
Argument ‘Filter’: BC30198: ‘)’ expected. "

@Mohammad_Allan

"@SQL=""urn:schemas:httpmail:subject"" LIKE '%" + in_IncidentNumber + "%'"

yes it worked exactly as it should.
thanks

1 Like

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