Using PowerShell Workflows to improve performance on creating Document Libraries

%3CLINGO-SUB%20id%3D%22lingo-sub-238309%22%20slang%3D%22en-US%22%3EUsing%20PowerShell%20Workflows%20to%20improve%20performance%20on%20creating%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-238309%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20recently%20worked%20on%20a%20project%20to%20create%20document%20libraries%20for%20each%20folder%20seating%20on%20a%20file%20share.%20The%20folders%20totaled%20over%202000.%20Creating%20a%20document%20library%20for%20each%20was%20super%20slow%20calling%20New-PnPList%20.%20I%20pondered%20if%20there%20was%20other%20strategies%20to%20quickly%20create%20thousands%20of%20list%20or%20libs.%20Any%20insights%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20find%20powershell%20workflows%20and%20tried%20using%20them.%20Performance%20was%20vastly%20improved%20but%20I%20got%20lots%20of%20errors%20in%20the%20process.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-238309%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-238388%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20PowerShell%20Workflows%20to%20improve%20performance%20on%20creating%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-238388%22%20slang%3D%22en-US%22%3EDo%20you%20mean%20to%20improve%20the%20performance%20of%20list%20creation%3F%20Not%20really%20since%20you%20have%20to%20rely%20on%20the%20SPO%20API%2C%20something%20you%20are%20doing%20with%20the%20New-PnPList...one%20possibility%20here%20would%20be%20to%20explore%20if%20the%20Site%20Scripts%20and%20Site%20Design%20options%20is%20faster%20here%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi

 

I recently worked on a project to create document libraries for each folder seating on a file share. The folders totaled over 2000. Creating a document library for each was super slow calling New-PnPList . I pondered if there was other strategies to quickly create thousands of list or libs. Any insights?

 

I did find powershell workflows and tried using them. Performance was vastly improved but I got lots of errors in the process.

1 Reply
Do you mean to improve the performance of list creation? Not really since you have to rely on the SPO API, something you are doing with the New-PnPList...one possibility here would be to explore if the Site Scripts and Site Design options is faster here