Need help to copy a list with folders and list item content #5045
Unanswered
mjanssen-lf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a SharePoint list that I need to copy periodically to other sites. I can use the following code to get folders or items but not the folders with the items inside. Any idea how to get it so that it has the folders with the items inside?
Get-PnPSiteTemplate -Out "PnP-Provisioning-File.xml" -ExcludeHandlers Navigation, SiteSecurity
Add-PnPListFoldersToSiteTemplate -Path "PnP-Provisioning-File.xml" -List "Test List One"
OR (using both just gets me the items in testing)
Add-PnPDataRowsToSiteTemplate -Path "PnP-Provisioning-File.xml" -List "Test List One"
Beta Was this translation helpful? Give feedback.
All reactions