SiteScripts/SiteCollectionList.json
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json", "actions": [ { "verb": "createSPList", "listName": "Site Collection List", "templateType": 100, "color": "11", "icon": "11", "subactions": [ { "verb": "addSPFieldXml", "schemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Type=\"Text\" Name=\"Title\" DisplayName=\"Title\" Required=\"TRUE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" FromBaseType=\"TRUE\" EnforceUniqueValues=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" MaxLength=\"255\" Sealed=\"FALSE\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Text\" DisplayName=\"URL\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" ID=\"{1462d289-c068-4284-a38f-ec4e5982258f}\" Name=\"URL\" StaticName=\"URL\" MaxLength=\"255\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Text\" DisplayName=\"Storage Used (GB)\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" ID=\"{2ef4da51-9cd1-4ccf-96dd-2e9360379709}\" Name=\"StorageUsed_x0028_GB_x0029_\" StaticName=\"StorageUsed_x0028_GB_x0029_\" MaxLength=\"255\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Text\" DisplayName=\"Template\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" ID=\"{93028344-865d-4d52-8306-e77afd8d6487}\" Name=\"Template\" StaticName=\"Template\" MaxLength=\"255\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Note\" DisplayName=\"Plan\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" ID=\"{f6b7005a-2c5e-4d00-99cb-af7d311e9b92}\" Name=\"Plan\" StaticName=\"Plan\" RichText=\"FALSE\" RichTextMode=\"Compatible\" IsolateStyles=\"FALSE\" AppendOnly=\"FALSE\" NumLines=\"6\" CustomFormatter=\"{
 "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
 "elmType": "div",
 "txtContent": "@currentField",
 "attributes": {
 "class": "=if(indexOf(toLowerCase(@currentField),'delete') != -1, 'sp-field-severity--warning','')"
 }
}\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\" />" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Choice\" DisplayName=\"Status\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" CustomFormatter=\"{"elmType":"div","style":{"flex-wrap":"wrap","display":"flex"},"children":[{"elmType":"div","style":{"box-sizing":"border-box","padding":"4px 8px 5px 8px","display":"flex","border-radius":"16px","height":"24px","align-items":"center","white-space":"nowrap","overflow":"hidden","margin":"4px 4px 4px 4px"},"attributes":{"class":{"operator":":","operands":[{"operator":"==","operands":["@currentField","Review Plan"]},"sp-css-backgroundColor-blueBackground37",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Plan Approved"]},"sp-css-backgroundColor-successBackground50",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Complete"]},"sp-css-backgroundColor-warningBackground50",{"operator":":","operands":[{"operator":"==","operands":["@currentField",""]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Holding"]},"sp-css-backgroundColor-blockingBackground50","sp-field-borderAllRegular sp-field-borderAllSolid sp-css-borderColor-neutralSecondary"]}]}]}]}]}},"children":[{"elmType":"span","style":{"line-height":"16px","height":"14px"},"attributes":{"iconName":{"operator":":","operands":[{"operator":"==","operands":["@currentField","Review Plan"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Plan Approved"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Complete"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField",""]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Holding"]},"",""]}]}]}]}]}}},{"elmType":"span","style":{"overflow":"hidden","text-overflow":"ellipsis","padding":"0 3px"},"txtContent":"@currentField","attributes":{"class":{"operator":":","operands":[{"operator":"==","operands":["@currentField","Review Plan"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Plan Approved"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Complete"]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField",""]},"",{"operator":":","operands":[{"operator":"==","operands":["@currentField","Holding"]},"",""]}]}]}]}]}}}]}],"templateId":"BgColorChoicePill"}\" ID=\"{337c92f4-990e-47c0-94b1-857bbaf3a1a0}\" Name=\"Status\" StaticName=\"Status\" Format=\"Dropdown\" FillInChoice=\"FALSE\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\"><Default>Review Plan</Default><CHOICES><CHOICE>Review Plan</CHOICE><CHOICE>Plan Approved</CHOICE><CHOICE>Complete</CHOICE><CHOICE>Holding</CHOICE></CHOICES></Field>" }, { "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Text\" DisplayName=\"Hub\" EnforceUniqueValues=\"FALSE\" Required=\"FALSE\" Hidden=\"FALSE\" ReadOnly=\"FALSE\" CanToggleHidden=\"FALSE\" ID=\"{32b9b0d8-ed8e-46ac-a748-af937feeebc2}\" Name=\"Hub\" StaticName=\"Hub\" MaxLength=\"255\" PITarget=\"\" PrimaryPITarget=\"\" PIAttribute=\"\" PrimaryPIAttribute=\"\" Aggregation=\"\" Node=\"\" />" }, { "verb": "addSPView", "name": "All Items", "viewFields": [ "Edit", "Hub", "LinkTitleNoMenu", "URL", "StorageUsed_x0028_GB_x0029_", "Template", "Status", "Plan" ], "query": "<OrderBy><FieldRef Name=\"Title\" /></OrderBy>", "rowLimit": 30, "isPaged": true, "makeDefault": true, "formatterJSON": "", "replaceViewFields": true } ] } ] } |