How to configure "Account" parameter in "Get Files and Folders" O365 activities. General Exception thrown

I am trying to create a workflow that interacts with Sharepoint using Microsoft Office 365 activities. In the Office 365 scope, I have configured the authentication type - Application ID and Secret.

I am using the “Get files and folders” activity to search for a specific folder. The property is as follows:

But when I run the following workflow, there is an error thrown:- “Find Files And Folders: Code: generalException. Message: An error occurred sending the request.”

One thing I noticed is that the highlighted field in the Properties pane is required for App ID and Secret authentication. Funny part is that the property is not listed in the UiPath documentation. Does anyone know if the highlighted “Account” is causing the error or is there any other reason? Appreciate all the help in advance!

Hi @Sash_JV

Have you given the appropriate values in the scope ?

Try given the Tenant ID, App ID and App Secret in their respective properties.

Yes. The App ID, Tenant ID and Secret are configured properly.

That message means your 365 Scope authentication is failing. You don’t have to fill in Account for the Find Files activity - that’s just if you want to use a different account than the one you authenticated with via the scope activity.

@Sash_JV

I also suggest you to check your authentication.

To check if it’s configured properly try to send an email inside the scope and check if it’s able to excetue.

The authentication method is working for mail actions.
Here are the following permissions:
image

The Account parameter is mandatory for App ID and Secret authentication. Not sure if there is any way to bypass it.