03-23-2018 09:24 AM
03-23-2018 09:24 AM
Are "site designs" the recommended OOB method (for now, at least) for replicating the existing "site template" type functionality? And, I think I saw this in documentation, but can you add a site to a Hub as part of a site design script? So, the thought being that you could have scoped site designs that allow people to create sites (within their area) that would then automatically associate that site to the appropriate Hub?
03-23-2018 09:27 AMSolution
Yes there is a site script action to add a site to a hub, https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema#jo.... Site designs are the best way to accomplish templating but it is still limited but they give us the ability to call a flow and then we can do whatever we need as part of that flow include launching a PnP Provisioning template.
03-23-2018 09:30 AM
Thanks, Ryan. I did see that site designs are limited to 30 actions, which does seem like a small number, especially if you are saving customized lists and things. Is the idea that you could launch the PnP provisioning template (via the flow), which could ultimately do whatever you want (without the limitations)?
03-23-2018 09:34 AM
Yeah, by launching a PnP Provisioing template you are not limited to the 30 actions. In a webinar I did yesterday on Site Designs and scripts, my recomendation is that things that the site scripts can do to be added there, within the 30 action limit. The reason is that the user gets status updates to those pieces being accomplished. When you trigger a flow to apply the last bits with PnP the user loses status updates. So I suggested if you need to do that, make sure your Flow Trigger action tells the user that the last parts will be applied asynchronously. That way the expectation is set.
03-23-2018 10:50 AM
https://www.youtube.com/watch?v=bo1iN7pbmLI looks promising
by Mark Kashman on March 31, 2020
by Mark Kashman on February 05, 2020
by Mark Kashman on October 23, 2019