Massive load of documents into a library - PNP

Brass 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

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

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

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#

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!

Here you go