Build Your First Automation 'Attachment' Variable not Member of String error

Excel Application Scope activity for path "Invoice" + RetrievedEmails.Attachments.First.Name I am getting the following error:

Argument ‘Workbook Path’: BC30456:‘Attachments’ is not a member of ‘String’.

image

HI,

This error is caused by RetrieveEmails variable is String type.
Can you check type of RetrieveEmails? or Replace it with MailMessage type variable.

For example, it should be as the following.

Regards,

That worked, thank you!

1 Like