Get mail activity not working

I am getting this error. I gave tenant id, client secret credentials.

Hi @balanirmalkumar.s,

Please run this process in debug mode and capture the detailed error from there.

Then share that with us, there can be multiple sub reasons for this error like you don’t have required api permissions etc.

Please verify if you have necessary graph api permissions enabled for this app I’d.

Also, confirm the version you are using for O365 package.

Regards
Sonali

How to check graph api permissions enabled for this app I’d?

@balanirmalkumar.s

If your admin created this for you, you should be able to ask them to share snapshot of what api permissions are assigned.

If you created this yourself, you should be able see those under app registration-> view api permissions on azure

Also, please check the detailed error message, it can be the case that it’s related to scope error.

Plus, also tell me what package version of O365 you are using in your UiPath project.

Hey @balanirmalkumar.s
The most common cause of this issue is missing Graph API permissions.
To check this, go to the Azure Portal, open your App Registration, and navigate to API permissions. Ensure that you’ve added Mail.Read or Mail.ReadWrite and click Grant admin consent.

Take a look this topic also:

Hi @balanirmalkumar.s,

Please note that if detailed error shows you - scope needs to be set to default.

Then you need to downgrade your O365 package to version 2.3.3 it should fix.

Otherwise, it’s an api permissions issue.

Regards
Sonali

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.