If Condition with wildcards

Hello, everybody,

I have an If condition in a For Each activity in which I check a subject of an email.

Condition: item.subject.tostring = “123

The wildcards do not work, the e-mail with matching subjects fly through Else.

Matching e-mail with the subject: “Text 123 Text”

Where is my mistake?

You can use the string contains function.

1 Like

Is it generally not possible to use wildcards with the tostring method?

You’re actually not using it with the ToString method here, you’re using it with = (which I think is calling the Equals method in the background, but I could be wrong). This method does not support wildcards.

1 Like

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