Update AddLists.ps1

fix sitescript
This commit is contained in:
Russell gove 2021-07-03 09:49:07 -04:00 committed by GitHub
parent 06c303f539
commit b7bd4932f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,16 @@
cd C:\Users\trwg1\sp-dev-fx-webparts\samples\react-private-libraries\scripts\
#connect-pnponline -Url "https://russellwgove.sharepoint.com/sites/deleteme"
connect-pnponline -Url "https://{tenant}.sharepoint.com/sites/{site}"
$it=Get-Content '.\rfx.json'-Raw
Add-PNPSiteScript -Title "RFx Lists" -Content $it
$script=Add-PNPSiteScript -Title "RFx Lists" -Content $it
$design=Add-PNPSiteDesign `
-Title "Rfx Listes" `
-WebTemplate "64" `
-SiteScriptIds $script.Id `
-Description "Creates RFX Libraries"
Invoke-PnPSiteDesign -Identity $design.Id
Remove-PnPSiteDesign -Identity $design.Id
Remove-PnPSiteScript -Identity $script.Id