Unable to Send Mail using Office365 activities

Mateusz_Majchrzak
Mon, 31 Oct 2022 12:50:59 +0000
Studio

Hello!

Currently, for one of our customers, we’re in the process of migrating all of our email tasks to Office 365 activities from UiPath,

For that reason, we’ve first created an app in Azure directory and gave it required rights and admin consents,

The authentication type that we would like to use in this case for Office365 scope is: Application IdAndSecret,

Unfortunately, we’re unable to send an email using that AuthType and the error that we get back is the following:

/me request is only valid with delegated authentication flow

Using the same AuthType, GetMail works fine, it’s just the Send Mail. Have you ever encountered the following error? Is it because we can’t use the ApplicationIdAndSecret for sending mails?

Here are screenshots of our App Permissions and The flow:

2 posts - 2 participants