Massive load of documents into a library - PNP

%3CLINGO-SUB%20id%3D%22lingo-sub-188513%22%20slang%3D%22en-US%22%3EMassive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-188513%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wonder%20if%20somebody%20has%20prepared%20a%20script%20for%20performing%20a%20massive%20load%20of%20documents%20into%20a%20library.%3C%2FP%3E%3CP%3EI%20have%20the%20documents%20available%20in%20a%20windows%20folder.%3C%2FP%3E%3CP%3EI%20have%20a%20csv%20with%20the%20file%20name%20and%20several%20mandatory%20properties%20for%20every%20file.%3C%2FP%3E%3CP%3EI%20have%20to%20use%20PNP.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-188513%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecsv%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189974%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189974%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20you%20go%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189932%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189932%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138364%22%20target%3D%22_blank%22%3E%40michael%20meza%3C%2FA%3E%2C%20If%20you%20can%20send%20me%20the%20script%20I%20can%20custom%20it....%20It%20would%20be%20great%26nbsp%3Btry%20it%20for%20future...%3C%2FP%3E%3CH5%20id%3D%22toc-hId-1034042819%22%20id%3D%22toc-hId-1118858909%22%3EFor%20solving%20my%20problem%20now%2C%20I'm%20reading%20an%20xml%20file%20with%20a%20loop%20and%20the%20Add-PnPFile%20command.%20I%26nbsp%3Bthink%20this%20solution%20%26nbsp%3Bworks%20for%20me%20this%20time...and%20it's%20enough.%26nbsp%3B%3C%2FH5%3E%3CH5%20id%3D%22toc-hId--1518114142%22%20id%3D%22toc-hId--1433298052%22%3EThank%20you!%3C%2FH5%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189666%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189666%22%20slang%3D%22en-US%22%3EI%20have%20a%20C%23%20App%20that%20does%20exactly%20what%20you%20need...%20pulls%20from%20CVS%20file%20to%20push%20into%20SP%20with%20Metadata....%20you%20would%20have%20to%20tweak%20it%20to%20work%20for%20you%20if%20you%20could%20do%20it%20in%20C%23%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189339%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189339%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20dont%20have%20access%20to%20the%20servers%2C%20so%20I%20use%20to%20work%20with%20PnP...%20And%20I'm%20working%20with%20Sharepoint%202016%20on%20premise...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-189206%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-189206%22%20slang%3D%22en-US%22%3EThis%20does%20the%20job%20with%20PNP%20I%20think.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FUpload-Multiple-Documents-4c4aa989%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FUpload-Multiple-Documents-4c4aa989%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-188678%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-188678%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20try%20this%3F%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fbulk-upload-documents-sample-app-for-sharepoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fbulk-upload-documents-sample-app-for-sharepoint%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-188620%22%20slang%3D%22en-US%22%3ERe%3A%20Massive%20load%20of%20documents%20into%20a%20library%20-%20PNP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-188620%22%20slang%3D%22en-US%22%3E%3CP%3EWhy%20do%20you%20have%20to%20use%20PnP%3F%20can%20you%20not%20use%20C%23%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hello,

 

I wonder if somebody has prepared a script for performing a massive load of documents into a library.

I have the documents available in a windows folder.

I have a csv with the file name and several mandatory properties for every file.

I have to use PNP.


Thanks!

7 Replies
Highlighted

Why do you have to use PnP? can you not use C#

Highlighted
Highlighted

Hi, I dont have access to the servers, so I use to work with PnP... And I'm working with Sharepoint 2016 on premise...

Highlighted
I have a C# App that does exactly what you need... pulls from CVS file to push into SP with Metadata.... you would have to tweak it to work for you if you could do it in C#
Highlighted

Hi @michael meza, If you can send me the script I can custom it.... It would be great try it for future...

For solving my problem now, I'm reading an xml file with a loop and the Add-PnPFile command. I think this solution  works for me this time...and it's enough. 
Thank you!
Highlighted

Here you go