Assign a MailMessage to a Variable in Process State

My transaction item is a MailMessage in Datatable and I want to get it to a variable in Process State. If the item is string we use this for example by use Assign Activity: name = in_TransactionItem(0).toString
When transaction item is a MailMessage how can we assign this? How in_TransactionItem(0) should convert to MailMessage?

Hello @Hulya_Cetinkaya

Can you refer to the below post.


Try: DirectCast(in_TransactionItem(0), System.Net.Mail.MailMessage)