Forum Discussion
Enterprise Content Types and PNP Provisioning
Good question at the moment i am removing things from contenttype hub and move it in to 1 site if needed.
Have not yet tested this functionality. But i imagine that when you create the sitecollection the contenttype hub is published after that pnp kicks in. But could be wrong here.
Paul,
Thanks! My first test was a success, though the site had been running for a day or so. This would mean that the Enterprise Content Type was present on the site. I'll do a bit more testing later this week to see if there is an issue of timing following provisioning. I may just have to test the site for the Content Type prior to continuing with my code.
- David GroomsJul 25, 2017Copper Contributor
As long as the source of the pnp file and the target are in the same tenant, not a problem.
The content types from the hub will be in the site before the PnP file is processed.
If the pnp is from a different tenant then the Guids won't match and you'll get duplicate field errors,
Dave
- Matthew McDermottJul 25, 2017Brass Contributor
Thanks! I was planning on using the same Content Type ID when I provisioned the Enterprise Content Type (using PNP to do the initial creation of the content type in the CT Hub) so I can keep the ID the same across tenants.
I'll keep testing, but so far I haven't found a problem.