Type Conversion System.Net.Mail.MailMessage to UiPath.MicrosoftOffice365.Models.Office365Message

Team,

Facing challange for Type Conversion System.Net.Mail.MailMessage to UiPath.MicrosoftOffice365.Models.Office365Message.
Any suggestions ?

PFA,
image

@prerna.gupta

May I know why is the reason you want to convert?

Cheers

Because now we need to use latest activities and Microsoft office 365 activities are mandate to use

@prerna.gupta

Good enough…but why the conversion is needed? All the activities are spearate for both

Cheers

I’m fetching all Emails from Inbox then looping for each to iterate through each item, If item.subject matches condition then i need to move email (using Office365 move activity)

@prerna.gupta

I hope you are using get mail under office 365 only then you would get list of office365 mail messages

And the type argument in for loop also should be same office365 mail message

Then inside the loop you will pass the same currentitem which would be office365mailmessage again

Cheers