Get Exchange Mail Messages: The request failed. Error en el servidor remoto: (401) No autorizado

Hello,

We had a bot running where it got mails from office365 with the activity UiPath.Mail.Exchange.Activities.GetExchangeMailMessages. This stopped working for us a few days ago, we assume that with Microsoft’s new security policy but we can’t find a way to solve the problem.
I appreciate any help to solve it.

Hi Karina,

In my case, I used the package named UiPath.MicrosoftOffice365.Activities where you can do the connection more efficiently and dynamically.
Because you can type the Application ID and Tenant ID of Azure at the Microsoft Office 365 Scope .
Finally, you can use get credential to connect it.

Example:
Connection:

Package: