Open Mlavieri opened 5 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Also experiencing this bug/issue. Didn't know that it was because of applying the site design to a Subsite. Will watch this issue for further developments.
Hello all, just to bump up this issue a little bit: Its still there and honestly very annoying. Also the site script documentation explicitly says that this should be possible: See this link under addSiteColumn.
Category
Expected or Desired Behavior
When applying a Site Design on a subsite any columns available to the site should be able to be used in a Site Design.
Observed Behavior
When applying a Site Design to a sub site that creates a content type with a reference to a Site Column the design will fail with an error that "One or more of the properties on this action has an invalid type." Additionally if this script also creates a column a duplicate column will be created at the subsite level.
Steps to Reproduce
{ "$schema": "schema.json", "actions": [ { "verb": "createSiteColumn", "fieldType": "Text", "internalName": "mattsColumn", "displayName": "Matt's Column", "isRequired": false, "group": "A" }, { "verb": "createContentType", "name": "Matt's CT", "parentName": "Item", "hidden": false, "subactions": [ { "verb": "addSiteColumn", "internalName": "mattsColumn" } ] } ] }
{ "$schema": "schema.json", "actions": [ { "verb": "createContentType", "name": "Matt's Sub CT", "parentName": "Item", "hidden": false, "subactions": [ { "verb": "addSiteColumn", "internalName": "mattsColumn" } ] } ] }
Thanks for your contribution! Sharing is caring.