Adding Attachments to an email using exchange online smartobject

  • 7 February 2020
  • 1 reply
  • 4 views

Hi All,

 

I am using the Exchange Online Service SmartObject to create and email and then send it on behalf of someone. I need to add attachments to the email from a SharePoint list. I've added the Attachment SmartObject in the workflow and it is asking for the ID and Attachment File. I added the EmailID to the ID field and then loaded the file information from reference I made from a list lookup with the files. I continually get the error Object of type 'System.Object[]' cannot be converted to type 'System.String'. Anyone have any thoughts or workarounds on this?

 

Thanks,

Ben


1 reply

Hello  @bhickok2, 


 


It sounds like the issue is with what is being passing into Attachment File field for that SmartObject. It sounds like you might be directly passing the reference to the file from the context broswer. You might try expanding the reference for the file in the Context Browser and passing the File Name property into the the Attachment File field since it is expecting a 'System.String' type. 


 


Regards, 
Samuel 

Reply