diff --git a/samples/react-private-libraries/scripts/AddLists.ps1 b/samples/react-private-libraries/scripts/AddLists.ps1 index 3f97e803d..eb75373ac 100644 --- a/samples/react-private-libraries/scripts/AddLists.ps1 +++ b/samples/react-private-libraries/scripts/AddLists.ps1 @@ -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