Trying to get the file or folder names in a SharePoint site. I am able to connect using Azure App to the SharePoint site, but did not figure out on how I can write down or navigate those files or folders. I used the For Each File or Folder activity and all I could get is the number of folders in a variable. How can I get the folder names?
I am using the activity UiPath.MicrosoftOffice365.Activities.Files.ForEachFileFolderConnections inside the UiPath.MicrosoftOffice365.Activities.Office365ApplicationScope.
When I used the activity UiPath.MicrosoftOffice365.Activities.Files.ForEachFileFolder and give all the required details, it says access denied.
Wondering how I can put images in to the post for better understanding.
Access denied error usually means your azure app doesn’t have the required permissions. How are you connecting to o365 scope? using app id and secret? or any other auth type?
For this, you can simply take screenshot and uplod an image here. mask any confidential data(if present) before uploading.
This Write Line prints the number of folders present in the Documents library.
But the below activity gives me error as access denied when the Site URL is given as https://XXXXXX.sharepoint.com/sites/XXXXXX. If the same above URL is used, it says the request is malformed or incorrect.