Aug 23 2022 07:14 AM
Hello All,
I was wondering if there is/are any ways to create a bulk/multiple SharePoint document libraries or list with Power Shell or Power Apps using .csv file.
Looking forward to hearing from you.
Thank you all.
Aug 23 2022 10:48 PM
You can use below script from PnP script samples:
https://pnp.github.io/script-samples/spo-add-multiple-lists-using-csv-file/README.html?tabs=pnpps
Above script support to create list and library both.
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
Aug 24 2022 12:42 AM
Aug 24 2022 12:50 AM
Format of CSV Library is given in same link i.e. https://pnp.github.io/script-samples/spo-add-multiple-lists-using-csv-file/README.html?tabs=csv
Let's say you want to create two document library with following details
Library 1
Library 2
Then you csv file should be as below:
Title;Template;Url
Project Documents;DocumentLibrary;ProjectDocuments
Contact Documents;DocumentLibrary;ContractDocs
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
Aug 24 2022 01:20 AM - edited Aug 24 2022 01:22 AM
Thanks @kalpeshvaghela for providing me extra information.
What I want to understand is this:
How this file looks like ListsAndLibraries.csv
Please see the attached image/screenshot. Is going to look something shown on the excel screenshot?
Thanks
Aug 24 2022 01:37 AM
Solution
It should look like as below:
And make sure that you update below link script based on which separator you are using in csv file either semi-colon (;) or colon (,).
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
Aug 26 2022 01:02 AM
Aug 24 2022 01:37 AM
Solution
It should look like as below:
And make sure that you update below link script based on which separator you are using in csv file either semi-colon (;) or colon (,).
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community