Hello everybody,
I'm currently trying to import a library and folder structure to sharepoint online from a CSV.
My csv looks like this:
Position1;Position2;Position3
0 Basics;;
1 LibraryA;;
;1.1 FolderA_in_LibA;
;1.2 FolderB_in_LibA;
;;1.2.1 SubfolderA_in_FolderB
2 LibraryB;;
First column is a document library (added with "new-pnplist -Title -Template DocumentLibrary"), second column is a first folder, third column is a subfolder of second.
How can I manage that when creating e.g. the folder 1.2 the last used Position 1 (document library) is used? Same issue when creating the the subfolder 1.2.1.
$importcsvfile | foreach {
add-pnpfolder -Name $importcsvfile.Position3 -Folder LASTUSED_$importcsvfile.Position2
}
I hope you understand what I mean...not too familiar with this kind of stuff :)
Thanks in advance