Unable to download attachments from Gmail becz if condition is not satisfying

Dear friends,
I’m unable to solve below error. Could you please help to resolve this issue.

  1. I’ve taken for each activity mail=every subject mail message.
  2. If activity- if the condition(mail.Subject.Contains(“Attachment”)) is satisfied then it will download attachment from email and saved at specified folder.



replace by below, it will work


mark as solution if it works


@Lokesh1, Welcome back to the community

I save attachment activity has an error, can you hover over and tell us what is the error message saying.

Subject property give result as String

so there is no difference in
mail.subject.contains("attachment") and mail.subject.ToString.contains("attachment")


For each Type Argument should be System.Net.Mail.MailMessage

Check that in properties, If it is not, show me the error which you are facing by pointing to blue

Hope this helps you


To get the Subject property, OP must set Type Argument as System.Net.Mail.MailMessage
and if OP set the Type Argument correctly then he dont need to do mail.subject.ToString.Contains(“attachment”)
This is what I am saying.

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