Office 365 Get Mail - Output

Hello All, I am trying to replace a get mail activity in one of our bots to the new office 365 activity.

I have added the get mail in the scope. I however want to save the output in an existing Argument but i am getting an error.

Argument details below

Name: out_Message
Direction: Out
Argument Type: System.Collections.Generic.List<System.Net.Mail.MailMessage>

The error message is attached
Value of type ‘System.Collections.Generic.List(OfSystem.Net.Mail.MailMessage)’ cannot be converted to ‘1-dimensional array of UiPath.MicrosoftOffice365.Models.Office365MEssage’.


It seems out_Message is List<MailMessage> type. Type of the Result property is UiPath.MicrosoftOffice365.Models.Office365Message array.

So it’s necessary to set the above type variable in it.

Also try Ctrl+K to create proper type variable in the property.



Hi @MoBot
Install the most recent version of the O365 package in UiPath. Try to receive mail in the same format as shown below.


Kaviyarasu N

Refer package name and actions here