Hi,
In our current setup site provisioning is done using flow, site design, and azure runbooks. Since our site uses different custom content types we have added 1-hour delay in the flow to sync the content types to the newly created site. After that using site design, different lists will be created and respective content types will be added to the list.
Due to the changes happening in content type synchronization logic we are redesigning the current system. So just after creating the site, I used the command Add-PnPContentTypesFromContentTypeHub to sync the content types to the new site. Even though it's throwing an error the content types are getting synced. however, the issue is the site design scripts are not able to add the content types to the list, it's just creating the list. Since the site design option is replaced by site template , I'm not able to see the log of applying site design.
Does anybody face this issue?
I also read that,
A new verb is also being developed (addContentTypesFromHub) for use within SharePoint site script actions. This is expected to be available by the end of 2021.
https://support.microsoft.com/en-us/office/what-s-changed-in-content-type-publishing-609399c7-5c42-4e25-aff0-b59d4aa1867f
Do I need to wait to get addContentTypesFromHub action to successfully implement the system I described in this post?