{"id":18,"date":"2018-04-10T00:00:00","date_gmt":"2018-04-10T00:00:00","guid":{"rendered":"http:\/\/officedevblogs.wpengine.com\/?p=18"},"modified":"2018-04-10T00:00:00","modified_gmt":"2018-04-10T00:00:00","slug":"sharepoint-site-scripts-and-site-designs-april-2018-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/sharepoint-site-scripts-and-site-designs-april-2018-release\/","title":{"rendered":"SharePoint Site Scripts and Site Designs &#8211; April 2018 release"},"content":{"rendered":"<div id=\"body-content\">\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/officedevblogs.wpengine.com\/wp-content\/uploads\/2018\/05\/site-design-site-scripts-april-2018-release.png\" alt=\"Man with three screens\" width=\"800\" height=\"331\" \/><\/p>\n<p>We are happy to announce the availability of additional Site Script Actions for SharePoint Online Site Designs and Site Scripts. These new actions will enable you to further configure automatically the\u00a0newly created site collections for your employees and will reduce the requirements of having external services integrated with the provisioning process. We will keep on introducing new\u00a0Site Script Actions also in future, so please keep the\u00a0feedback coming, so that we can address also your requirements.<\/p>\n<ul>\n<li>Site Settings\n<ul>\n<li><strong>setRegionalSettings<\/strong>\u00a0&#8211; Used to\u00a0configure the regional settings of the site<\/li>\n<li><strong>setSiteExternalSharingCapability <\/strong>&#8211; Used to\u00a0manage guest access<\/li>\n<\/ul>\n<\/li>\n<li>Lists &amp; Libraries\n<ul>\n<li><strong>createSiteColumn\u00a0<\/strong>&#8211;\u00a0Defines a new site column that can then be associated to a list directly or using the <em>addContentType<\/em> action<\/li>\n<li><strong>addSiteColumn<\/strong> &#8211;\u00a0Subaction to add a previously defined site column directly to a list or content type<\/li>\n<li><strong>createContentType<\/strong> &#8211;\u00a0Defines a new content type that can then be associated to a list using the addContentType action<\/li>\n<li><strong>addSPView<\/strong> &#8211;\u00a0Defines and adds a view to the list<\/li>\n<li><strong>addSPFieldXml<\/strong> &#8211;\u00a0Enables defining fields and their elements using Collaborative Application Markup Language (CAML)<\/li>\n<li>Additional field properties: internal name, group, enforce unique<\/li>\n<\/ul>\n<\/li>\n<li>Apps\u00a0&amp; Solutions\n<ul>\n<li><strong>installSPFxSolution<\/strong> &#8211;\u00a0Install add-in or SharePoint Framework\u00a0solution from the tenant app catalog<\/li>\n<li>Associate SharePoint Framework extension action also coming soon<\/li>\n<\/ul>\n<\/li>\n<li>Miscellaneous\n<ul>\n<li><strong>triggerFlow<\/strong> action supports additional site properties<\/li>\n<li><strong>joinHub<\/strong> action has now also name parameter<\/li>\n<li>Invoke-SPOSiteDesign cmdlet to apply Site Design to an existing site (also supported through APIs)<\/li>\n<li>site design default preview image<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Site Designs JSON\u00a0schema documentation has been updated accordingly in the official <a href=\"https:\/\/docs.microsoft.com\/en-us\/sharepoint\/dev\/declarative-customization\/site-design-json-schema\">SharePoint developer documentation<\/a>. We will be publishing also official JSON schema for the Site Designs within following weeks, which will be kept up to date as we release new actions.<\/p>\n<p><strong>New\u00a0Site Script templates in GitHub<\/strong><\/p>\n<p>We have also released new Site Script templates in <a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\">GitHub<\/a>,\u00a0which demonstrate the usage of now introduced new\u00a0Site\u00a0Script actions.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/install-spfx-solution\">install-spfx-solution<\/a>\u00a0&#8211; Install SharePoint Framework solution from tenant app catalog to the site<\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/site-apply-external-sharing-setting\">site-apply-external-sharing-setting<\/a>\u00a0&#8211; Configure external sharing for the site<\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/site-apply-regional-settings\">site-apply-regional-settings<\/a>\u00a0&#8211; Configure regional settings for the site<\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/site-create-advanced-lists\">site-create-advanced-lists<\/a>\u00a0&#8211;\u00a0Create Advanced Lists<\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/site-create-advanced-lists2\">site-create-advanced-lists2<\/a>\u00a0&#8211;\u00a0Create Advanced Lists &#8211; addSPFieldXml usage<\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\/tree\/master\/samples\/triggerFlow-write-back-site-properties-to-splist\">triggerFlow-write-back-site-properties-to-splist<\/a>\u00a0&#8211; Additional site information with <em>triggerFlow<\/em> action<\/li>\n<\/ul>\n<div class=\"table-scroll-wrapper\">\n<h2>Additional resources<\/h2>\n<p>See following resources on the\u00a0covered topics.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sharepoint\/dev\/declarative-customization\/site-design-overview\">SharePoint Site Design and Site Script Overview<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sharepoint\/dev\/declarative-customization\/get-started-create-site-design\">Get started creating Site Designs and Site Scripts<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sharepoint\/dev\/declarative-customization\/site-design-json-schema\">Site Design JSON Schema<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/SharePoint\/sp-dev-site-scripts\">Reference Site Script templates in GitHub<\/a>\u00a0&#8211; We do <strong>welcome<\/strong> community contributions here!<\/li>\n<\/ul>\n<p><span style=\"font-size: large\"><em>\u201cSharing is caring\u201d<\/em><\/span><\/p>\n<\/div>\n<hr \/>\n<p><i>SharePoint Team, Microsoft &#8211; 10th of\u00a0April 2018<\/i><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce the availability of additional Site Script Actions for SharePoint Online Site Designs and Site Scripts. These new actions will enable you to further configure automatically the\u00a0newly created site collections for your employees and will reduce the requirements of having external services integrated with the provisioning process. <\/p>\n","protected":false},"author":69078,"featured_media":19,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365-developer"],"acf":[],"blog_post_summary":"<p>We are happy to announce the availability of additional Site Script Actions for SharePoint Online Site Designs and Site Scripts. These new actions will enable you to further configure automatically the\u00a0newly created site collections for your employees and will reduce the requirements of having external services integrated with the provisioning process. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69078"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/19"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}