Mail.subject.contains doesn't auto-complete

Welcome to the UiPath Community @Subha_Sundara_moorthi!

.Contains will always return a boolean value, it means that statement is true or false

I assume you are trying to read subject and if ur contains Welcome word then printing it, right?

Use a if condition, in the condition mention that same condition you wrote, just remove the .ToString from end. and in then block, write item.Subject

Make sure you have the for loop property set correctly. The argument should be of Mail.Message type as shown above in your thread too.

1 Like