Copy files from Sharepoint
Hi
I am trying to copy file from Sharepoint to ADLS account using the below document.
I am able to get the access token but it says file not found. I have implemented this in the past for other project (other domain) successfully. But here it is displaying following error.
"ErrorCode=HttpRequestFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Http request failed with client error, status code 403 Forbidden, please check your activity settings. If you configured a baseUrl that includes path, please make sure it ends with '/'.
Request URL: https://<domain-name>.sharepoint.com/teams/MDHDataManagementSync/_api/web/GetFileByServerRelativeUrl('/teams/MDHDataManagementSync/Shared Documents/DQC/Test_File.xlsx')/$value.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'"
URL Link to Sharepoint is following
https://<domain-name>.sharepoint.com/teams/MDHDataManagementSync/Shared%20Documents/Forms/AllItems.aspx
Sharepoint Admin has set Permissions according to above document