3

I solved it! Did it by adding -Encoding UTF-8 like this: Get-Content 'C:\PATH\Site Designs\poc_site_design.json' -Raw -Encoding UTF8 | Add-SPOSiteScript -Title "POC Site design"


2

It is not available yet. Check the image below from SPC 2019, in the right hand side under SetSiteBranding heading, you will find Footer Visibility action. I checked the latest schema and right now its not available, but other capabilities like Header layout, background and Navigation visibility are available. So, would expect the Footer visibility ...


1

Per my research, there is no "add folder" subaction when we create a new SharePoint list using JSON schema. For more information,please refer to: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema


1

You need to use the ApplySiteDesign method of the Tenant class. In that method, you need to pass the site design's Id. For that you first need fetch the site Design id that you want to apply and then use the ApplySiteDesign method to execute the site design on the site collection. The code for that would be as below: var tenantUrl = "https://<tenant&...


1

Use &lt; instead of less than symbol. You can try below: "verb": "addSPFieldXml", "schemaXml": "<Field Type=\"Calculated\" ResultType=\"Text\" Name=\"CalcProbability\" DisplayName=\"Probability\" Required=\"FALSE\">. <Formula>=IF([Probability Value]&lt;0.5,\"Rare\",\"Likely\")</Formula></Field>"


1

You are passing the string incorrectly. Enclose it inside @' and '@ as mentioned below: $pnpTemplate = @' { "$schema": "schema.json", "actions": [ { "verb": "createSPList", "listName": "Customer Tracking", "templateType": 100, "subactions": [ { "verb": "SetDescription", "description": "List of ...


Only top voted, non community-wiki answers of a minimum length are eligible