Forum Discussion
Joe Fedorowicz
Feb 04, 2017Iron Contributor
Add WSP Solution to Office 365 Group Site
Good morning, I have a workflow that utilizes a Solution to generate a templated subsite when a list item is created. This works great on non-Office 365 Group SharePoint sites, but I was hoping ...
Joe Fedorowicz
Feb 04, 2017Iron Contributor
When I save a site template, it saves it to the solutions gallery. I then want to populate that elsewhere (to about 150 other site collections, that are identical) using Powershell, or another method. This would allow me to make a change to one template and populate it elsewhere without having to do so manually.
Feb 04, 2017
That's not the way to go: using the save as template feature for sites...the scenario you are describing fits really well with the capabilities provided by the PnP Provisioning engine and cmdlets
- Joe FedorowiczFeb 05, 2017Iron Contributor
So I want to spin up a subsite with a certain set of libraries (with content types) and lists in it, every time someone submits a list item.
How would you recommend I do that?
- Feb 05, 2017One approach could be to use a Web Job published in Azure that just reads the subsite definition extracted by means of the PnP cmdlets and apply it when creating the new sites....the Web Job is continuously polling the list to locate new requests so It can create the new site. Another approach coul be to create a service (a REST one) that do exactly the same and it's called by a Flow attached to the list...of course, you could call also this same service from a SharePoint workflow. If you ask my recommendation, the first one is much more easy to get it working
- Joe FedorowiczFeb 05, 2017Iron ContributorThank you. I seem to think that my current strategy is no good. The Web Job and PNP CMDLets, would they be a series of actions that would, individually, create the site the way I want it? Is there any other way to do this in a package, or is that functionality gone?
Thanks.