Sep 23 2019 02:12 PM
We have a requirement to provision sites using a form we are building in SPFX web part to restrict who can create specific sites. This process requires lot of inputs from user to provision site and set default values in the site before users start using it.
At the moment we have below requirements:
Problem:
We are using site design scripts for provisioning lists and libraries. Using site design scripts, Creation of content types from hub is not available, enabling of site collection features not available, adding of content to lists and library is not available.
Solution tried:
1. Azure Automation - Written PowerShell script and wait for time till content types are synced to newly created sites (~30 mins). After site content types are available we are adding them to lists and libraries. And then adding default content to lists and libraries. But, problem is time taking and not sure if content types are synced 30 mins, sometimes we see over an hour. Script is growing over time for additional customization etc.
2. Pnp Provisioning - Use PnP provisioning template to download the schema from a existing site and then use that template to create site. This one has its own issues.
At the moment for production use I like to know what is the best practice people are following to provision a modern site which uses content type hub content types?? If we use same content type id, name and fields in it in PnP provisioning template, are there any problems when the site syncs from content type hub in next run?
thanks
-Praveen.
Sep 25 2019 08:43 PM
@Praveen_Battula - The Content Type Hub has always been a great idea, but the variation in replication times is very frustrating. I think you can create content types using the Same ID, but you'll have to test it and it should be fairly easy to setup a test like that. Choose a content type that you already have on the CT Hub and create it with the same id on a test site. Then check the Content Type Publishing error log for errors ( _layouts/15/contenttypesyndicationhubs.aspx ). You may have to wait awhile. Good Luck
Sep 25 2019 09:16 PM
Nov 25 2019 03:30 AM
Im having the same issue myself.
I just put a delay in the Flow using the delay trigger.
I would like to know if possible how you check when content types are available?
Apr 06 2020 10:29 AM