Forum Discussion
Create multiple SharePoint Document libraries with Power Shell or Power Automate
- Aug 24, 2022
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
In this case, the columns for this file(ListsAndLibraries.csv) will be:
Title| | Url || PnP Library || DocumentLibrary ||
#Path to CSV file
$csvFilePath = "ListsAndLibraries.csv"
Am i right?
Thanks again.
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 Url: ProjectDocuments
- Library Title: Project Documents
Library 2
- Library Url: ContractDocs
- Library Title: Contract Documents
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
- NaligurtanAug 24, 2022Brass Contributor
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- kalpeshvaghelaAug 24, 2022Iron Contributor
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
- NaligurtanAug 26, 2022Brass ContributorThanks. It is working.