SharePoint Create Folder - VisualCron - Forum

Community forum

MRomer
2020-07-23T17:17:01Z
Using 9.1.5.

I'm creating a job that will run nightly and upload a file to a SharePoint document library. I want to organize the files with folders based on year and month. Is it possible for VisualCron to create the folder(s)? I haven't found a way to do it yet.

+ Mark
Support
2020-07-30T11:07:30Z
We do not have Tasks for Creating, Listing and Deleting Sharepoint folders yet. We will notify you when we have that support.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MRomer
2020-07-30T15:39:55Z
Thank you for your response. I ran into another snag with using only VC tasks for the job. In the SharePoint upload task I could designate a local folder and tell it to upload all files within the folder, including subfolders, but it put all the uploaded files into a single SharePoint folder. I had hoped it would re-create the relative folder tree.

I ended up writing a PowerShell script to handle the file uploads. The Sharepoint PNP library has an Add-PnpFile cmdlet that automatically creates the folders as needed when uploading files, so a file in C:\localfolder\2020\07 can automatically be made to go into <SharePointSite><Library>/2020/07, if I want.
Support
2020-08-04T15:13:07Z
Originally Posted by: MRomer 

Thank you for your response. I ran into another snag with using only VC tasks for the job. In the SharePoint upload task I could designate a local folder and tell it to upload all files within the folder, including subfolders, but it put all the uploaded files into a single SharePoint folder. I had hoped it would re-create the relative folder tree.

I ended up writing a PowerShell script to handle the file uploads. The Sharepoint PNP library has an Add-PnpFile cmdlet that automatically creates the folders as needed when uploading files, so a file in C:\localfolder\2020\07 can automatically be made to go into <SharePointSite><Library>/2020/07, if I want.



Thanks for pointing this out. That will be a feature request though, to create the whole folder tree. I will move this thread to FR
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top