SOLVED

Site Designs with Hub Sites

%3CLINGO-SUB%20id%3D%22lingo-sub-175153%22%20slang%3D%22en-US%22%3ESite%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175153%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20%22site%20designs%22%20the%20recommended%20OOB%20method%20(for%20now%2C%20at%20least)%20for%20replicating%20the%20existing%20%22site%20template%22%20type%20functionality%3F%26nbsp%3B%20And%2C%20I%20think%20I%20saw%20this%20in%20documentation%2C%20but%20can%20you%20add%20a%20site%20to%20a%20Hub%20as%20part%20of%20a%20site%20design%20script%3F%26nbsp%3B%20So%2C%20the%20thought%20being%20that%20you%20could%20have%20scoped%20site%20designs%20that%20allow%20people%20to%20create%20sites%20(within%20their%20area)%20that%20would%20then%20automatically%20associate%20that%20site%20to%20the%20appropriate%20Hub%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-175153%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHub%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESite%20Design%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175314%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175314%22%20slang%3D%22en-US%22%3EYeah%20it%20was%20recorded%20and%20should%20be%20posted%20next%20week.%20It%20was%20part%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fsearch%3Fq%3D%2523PixelMillWebinars%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftwitter.com%2Fsearch%3Fq%3D%2523PixelMillWebinars%3C%2FA%3E%20series.%20I'll%20tweet%20it%20out%20as%20soon%20as%20it%20is%20posted.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175309%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175309%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dbo1iN7pbmLI%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dbo1iN7pbmLI%3C%2FA%3E%20looks%20promising%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175305%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175305%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20Ryan.%26nbsp%3B%20Any%20chance%20the%20webinar%20you%20referenced%20could%20be%20watched%20on%20demand%3F%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175193%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175193%22%20slang%3D%22en-US%22%3E%3CP%3EYeah%2C%20by%20launching%20a%20PnP%20Provisioing%20template%20you%20are%20not%20limited%20to%20the%2030%20actions.%20In%20a%20webinar%20I%20did%20yesterday%20on%20Site%20Designs%20and%20scripts%2C%20my%20recomendation%20is%20that%20things%20that%20the%20site%20scripts%20can%20do%20to%20be%20added%20there%2C%20within%20the%2030%20action%20limit.%20The%20reason%20is%20that%20the%20user%20gets%20status%20updates%20to%20those%20pieces%20being%20accomplished.%20When%20you%20trigger%20a%20flow%20to%20apply%20the%20last%20bits%20with%20PnP%20the%20user%20loses%20status%20updates.%20So%20I%20suggested%20if%20you%20need%20to%20do%20that%2C%20make%20sure%20your%20Flow%20Trigger%20action%20tells%20the%20user%20that%20the%20last%20parts%20will%20be%20applied%20asynchronously.%20That%20way%20the%20expectation%20is%20set.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175178%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175178%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20Ryan.%26nbsp%3B%20I%20did%20see%20that%20site%20designs%20are%20limited%20to%2030%20actions%2C%20which%20does%20seem%20like%20a%20small%20number%2C%20especially%20if%20you%20are%20saving%20customized%20lists%20and%20things.%26nbsp%3B%20Is%20the%20idea%20that%20you%20could%20launch%20the%20PnP%20provisioning%20template%20(via%20the%20flow)%2C%20which%20could%20ultimately%20do%20whatever%20you%20want%20(without%20the%20limitations)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175168%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Designs%20with%20Hub%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175168%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20there%20is%20a%20site%20script%20action%20to%20add%20a%20site%20to%20a%20hub%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fsite-design-json-schema%23join-a-hub-site%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fsite-design-json-schema%23join-a-hub-site%3C%2FA%3E.%20Site%20designs%20are%20the%20best%20way%20to%20accomplish%20templating%20but%20it%20is%20still%20limited%20but%20they%20give%20us%20the%20ability%20to%20call%20a%20flow%20and%20then%20we%20can%20do%20whatever%20we%20need%20as%20part%20of%20that%20flow%20include%20launching%20a%20PnP%20Provisioning%20template.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

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?

6 Replies
Highlighted
Solution

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.

Highlighted

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)?

Highlighted

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.

Highlighted

Thanks, Ryan.  Any chance the webinar you referenced could be watched on demand? :)

Highlighted
Recording of the SIG from March 22nd. Detailed agenda and covered topics are available via the MS Tech Community (https://techcommunity.microsoft.com/t5/Shar...
Highlighted
Yeah it was recorded and should be posted next week. It was part of the https://twitter.com/search?q=%23PixelMillWebinars series. I'll tweet it out as soon as it is posted.