If I left the the Query folder as empty, the folders are created to the one drive root folder by default, however I need the folder need to be created in the SharePoint drive
Thanks for your reply, however as I mentioned, I’m already using this activity to create a folder
the problem, is I’m unable to create a folder under the documents drive.
its working fine when already a folder is available and we need to create a folder under the available folder
Hi @Fresher ,
Your mean is subfolder?
If you have a folder already in the document library, find it with Find Files and Folders, then use Get File/Folder passing in the existing folder’s ParentReference.Id as input to get the root folder as a DriveItem, then use that in Create Folder to create the new folder you want under the root.
regards,
LNV
yes, Tried with drive name as “Documents” still the folders are not created.
If you are able to create a folder, could you please share the sample code.
I tested this, and as it turns out, it wasn’t possible to create a folder directly under “Documents” with the instructions I provided. I managed to create it by using “Get File/Folder” and providing the url to the Documents drive like this
(start of url omitted).