UiPath Studio Wildcard Option

Is there a wildcard filter option for email?

Hi
welcome to uipath community
yah based on the method we use in get outlook mail actiivty in the filter property
That includes
–Subject
–ReceivedFrom
–From

if we are trying to filter the data like body content
–then we can check with CONTAINS method in if condition rather to wildcards like this
yourmailmessagevariable.Body.Contains(“yourstringtobesearched”)
if true will go for THEN part of if condition or to ELSE part

Kindly correct me if i have understood the query wrongly
Cheers @thegreatpotato5

Hi @Palaniyappan

What if you wanted to “yourstringtobesearched” to contain wildcards?

yourmailmessagevariable.Body.Contains(“yourstringtobesearched”)

For example say the text I am looking for always contains “2020” but the following characters after 2020 are dynamic each day: Ex.) “20200516_1234”

Would it look like this?
yourmailmessagevariable.Body.Contains(“2020???_???”)

Fine
We can mention like this in filter property itself of get mail activity
"@SQL=urn:schemas:httpmail:textdescription like ‘%text%’"

Cheers @Luecke_Anthony @thegreatpotato5

1 Like

Thanks @Palaniyappan

So if I want to filter messages containing the following in the description (I need the ?'s to be wildcards as they will vary each time):

“2020???_???”

Would it look like this?

"@SQL=urn:schemas:httpmail:textdescription like ‘%2020???_???%’"

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