halliba / az-pipelines-2-sharepoint

Azure DevOps extension - upload build files to SharePoint Online
GNU General Public License v3.0
9 stars 4 forks source link

[Question/Documentation] - TargetFolder Creation #6

Closed pri-kise closed 1 year ago

pri-kise commented 1 year ago

Does this azure devops task create a target folder in sharepoint or will this lead to an error? We are currently still using an old depracted solution (https://marketplace.visualstudio.com/items?itemName=projectumapsvsts.upload-sp-files-app&targetId=e90a45e5-af43-4897-8059-b28e1d8ebea2) to upload our files to sharepoint and we receive some very strange error, when the Target Folder does not exist.

I checked the documentation, but I couldn't find any details if the target folder must exist.

halliba commented 1 year ago

Hi pri-kise,

the document library / drive itself has to exist. But the target folder within the drive will be created automatically. Not even by the task, but by the Microsoft Graph API itself. I've just tried to upload files into an empty drive with parameter targetFolder: /1/2/3/ and it worked fine.

Can you tell me what error you get? Do you use full access permissions or per library permissions?

Edit: I've added this to the README file

pri-kise commented 1 year ago

@halliba thanks for the clarifaction and the update of the README file. I didn't receive any errors with your awesome extension, but wit the old deprecated solution (mentioned above). I only wanted to be sure that we can easily transfer our current pipeline tasks to your devops task.