pnp / sp-dev-site-scripts

Repository for sample SharePoint site designs and site scripts

Home Page:https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ingrid-schiele-fnt opened this issue · comments

Category

  • Question
  • [ x] Bug
  • Enhancement

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.