How to connect uipath with sharepoint using office 365 scope?

Dear!,
Please your help to connect uipath with sharepoint using microsoft office 365 scope.
Register the application in Microsoft Azure, make a note of the tenant and the application id, leave “urn: ietf: wg: oauth: 2.0: oob” as the redirect URI (I don’t understand this part, I followed a tutorial that I got from youtube) and finally hand over API permissions for files and sites.
In uipath use Microsoft Office 365 scope with the following configuration:

Microsoft Office 365 Scope:
Application id is the application id (client)
Services “Files” to manipulate files
Id_tenant is the Tenant.
Which user should I use? In Azure this Email and username, I don’t know which one to use.

Find Files and Folders Activity:
Query: it is the Word file that I want to download.
First is the output of the query.
Driver Name is the folder in sharepoint where the file to download is hosted.

In Site url I do not understand what part of the URl I should put. My URL is:
https://xxxx.sharepoint.com/sites/universidad_actual/Documentos%20compartidos/Forms/AllItems.aspx

Download File Activity:
I only indicate the input file which in this case is in the variable filename.
The filepath I leave it empty so that it leaves the file in the current directory.

Run the BOT and the error is as follows:

image

RemoteException wrapping Microsoft.Graph.ServiceException: Code: invalidRequest
Message: Invalid hostname for this tenancy
Inner error:
AdditionalData:
date: 2021-05-04T13:28:26
request-id: 8f0328d4-8a05-4ad8-bd84-e450c21c6f49
client-request-id: 8f0328d4-8a05-4ad8-bd84-e450c21c6f49
ClientRequestId: 8f0328d4-8a05-4ad8-bd84-e450c21c6f49

at Microsoft.Graph.HttpProvider.d__18.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.BaseRequest.d__38.MoveNext()
— End of stack trace from previous location where exception was thrown —

I’m sure the tenant and application id are fine, I have no idea what else to do, I would really appreciate your help. Please excuse the bad English.

to guide me use the following video:
Download SharePoint File using UiPath - YouTube

Hello @hfariasseguel!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

Hello, I am getting the same error,

Did you ever find a resolution to this?

Hi @hfariasseguel ,

Regarding the url I think you should start with this part first:

https://xxxx.sharepoint.com/sites/universidad_actual

Please do not type any query to be sure that the problem is with the URL and to the query :wink:
as a Drive Item try leaving it blank or type “Documentos compartidos”

Regards