Using Send Email with Outlook 365 activity and needing to add attachments

Hello I am trying to send an email and add attachments. The Send email with outlook 365 is in a for each loop where it is gathering the currentFile to be the attachment and send with each email. I’m trying to use the currentFile variable in the attachments, but I continually get errors about string not being able to be converted IEnumerable(OfResource). Howdo I fix this?

@mojo001

Hi @mojo001

Use the below expression in the attachment field in Send Email activity,

New List(Of IResource) From {LocalResource.FromPath(CurrentFile.toString)}

CurrentFile.tostring is the output of For each file in folder activity.

Check the below image for better understanding,

Hope it helps!!

1 Like

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