Search code examples
emailoutlookuipathuipath-studio

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.

enter image description here

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:


Solution

  • I don't think it's possible in UiPath. So this is a solution for Power Automate (Flow):

    1. so first we need a trigger for new mails
    2. now we need a condition the checks for a contains on the Subject object
    3. finally you now have a trigger that is working only when the subject is of substring "..." what you have definied

    Overall the Flow should look like this: enter image description here