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?
@Kytyzow You can use the string contains function. item.subject.tostring.Contains("123")
item.subject.tostring.Contains("123")
Is it generally not possible to use wildcards with the tostring method?
@Kytyzow 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.
ToString
=
Equals
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.