pnp / sp-dev-site-scripts

Repository for sample SharePoint site designs and site scripts
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
MIT License
162 stars 68 forks source link

Re-run of site script creates new list if internal list name differs to list title #46

Open ingrid-schiele-fnt opened 3 years ago

ingrid-schiele-fnt commented 3 years ago

Category

Expected or Desired Behavior

As in the docs described: "Once createSPList is applied on a site, runnning the createSPList with the same list name will act as an update to the existing list." https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema#create-a-new-sharepoint-list

Observed Behavior

The update works not properly if the list has a different title set (setTitle subaction). Instead of an update a new list will be created.

Steps to Reproduce

Add a setTitle subaction to the createSPList action and run the site design at least twice.