How to convert System.Net.Mail.MailMessage to UiPath.MicrosoftOffice365.Models.Office365Message?
Hi,
Unfortunately, there is no official way to convert from MailMessage to Office365Message at this time. Can you share reason you need it? We might be able to suggest another approach.
Regards,
Hi,
I need to move the mail from one folder to another folder, and my current mail data type is mail message and I want migrate that into office 365.
Move mail of office 365 activity takes input as office365message, because of that I need to change the mail message to office365message.
Kindly help
Hello,
Did you find solution?
Yes i got the solution.
Kindly use the below expression.
CType(MailMessageVariable, UiPath.MicrosoftOffice365.Models.Office365Message)
When I try casting to Office365Message, I get the following error:
Assign: Unable to cast object of type ‘System.Net.Mail.MailMessage’ to type ‘UiPath.MicrosoftOffice365.Models.Office365Message’.
How were you able to accomplish this?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.