Sp-dev-docs: Site Designs : How to retrieve sites created with a specific site design?

Created on 16 Jul 2018  路  4Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Question

I was wondering if there was any way to get all SPO sites that have been created using a specific site design? The process in order to update a site design is well documented, the steps required to invoke an updated site design is also documented, but I didn't find any documentation on how to find the sites that have been created from a specific site design in order to retrofit them with the update site design. This is the step that I am missing :

[x] Create a site design
[x] Create a site using the site design
[x] Update the site design with another action
[ ] Find all sites created with the site design
[x] Invoke the update site design on each site

Any undocumented info about this?

Thanks!

community discussion question

All 4 comments

I don't believe this is possible out of the box with Site Designs right now.

A possible workaround is to record the Site Design somewhere at the time of site creation. With the triggerFlow action, you can pass the name of the Site Design as a custom parameter to the Flow as I have done here: https://github.com/vman/Site-Designs/blob/master/Office365.SiteDesigns.Deployment/SiteScripts/site-script-triggerFlow.json#L11

Then you can either maintain the list of sites and their respective Site Designs, or use the Flow to call an Azure Function which stamps the Site Design into the site property bag.

@erwinvanhunen didn't you investigate this for the provisioning engine?

@vman this is exactly what I was thinking about, but for now since we only have site designs applied the default designs (Team Site / Communication Site) I decided to code the retrofit part by looking up get "Template" property of the SPO site.

But yeah as soon we will have custom site designs we will have to store the design in the property bag if nothing has been planned for this.

Thanks!

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nanddeepn picture nanddeepn  路  3Comments

jonthenerd picture jonthenerd  路  3Comments

StfBauer picture StfBauer  路  3Comments

zerovectorspace picture zerovectorspace  路  3Comments

bengtmoss picture bengtmoss  路  3Comments