Microsoft Office 365 Scope activity - Office365message getting Subject of a Mail

I use the Microsoft Office 365 Scope activity. But I need the Subject and the body of that mail. Btw I cannot use the other activity “Get Outlook Mail Message” because I need the query parameter of the GetMail activity.

So as you can see from the picture I want to return the mail subject and so on. But I have no idea how to access it. The only thing I always get is “UiPath.MicrosoftOffice365.Models.Office365Message”.

So my question is, is it possible via the Get Mail activity to return the subject and body? If yes what is the statement to get it?

I already had a look here:


Your ‘get mail’ should return an array of ‘office365messages’
All you need is a for loop on that one message

Then assigning you subject and body inside the loop =


Yes. Meanwhile I also found out that simply using a For Each and on the item element using item.subject that should work out.