Email automation with excel sheet

HI ,I am trying to get outlook message to an excel file.When i follow the tutorial i got another error message.
Pls help.Thanks a lot.

Error message :
excel.test.xaml: The private implementation of activity ‘1.5: Multiple Assign’ has the following validation error: Cannot assign from type ‘System.String’ to type ‘System.Data.DataTable’.

1 Like


body1s variable should be of type String but not DataTable. Can you please check variable type once.


You must make sure that you write System.Net.Mail.MailMessage in the Type Argument field of the For Each activity.


your variable is type DataTable, you cant assing string into data table. Please change the type of body variable to string.