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:
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