Update existing ContentType using PnP Provisioning Engine

%3CLINGO-SUB%20id%3D%22lingo-sub-328693%22%20slang%3D%22en-US%22%3EUpdate%20existing%20ContentType%20using%20PnP%20Provisioning%20Engine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-328693%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20I%20update%20an%20existing%20ContentType%20using%20the%20PnP%20Provisioning%20Engine%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20%3CCONTENTTYPE%20id%3D%22%26quot%3B0x01006FC4E2F5D9B05C4EAF4786218BB48123%26quot%3B%22%20name%3D%22%26quot%3BDemo%26quot%3B%22%20overwrite%3D%22%26quot%3Btrue%26quot%3B%22%3E%20leads%20to%20the%20below%20error.%20Setting%20Overwrite%20to%20false%20causes%20the%20Provisioning%20Engine%20to%20not%20touch%20the%20Content%20Type%20at%20all.%3C%2FCONTENTTYPE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EApply-PnPProvisioningTemplate%20%3A%20Another%20site%20or%20list%20is%20still%20using%20this%20content%20type.%20If%20you%20would%20still%20like%20to%20delete%20it%2C%20please%20remove%20the%20content%20type%20from%20all%20sites%20and%20lists%20and%20then%20try%20again.%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354552%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20existing%20ContentType%20using%20PnP%20Provisioning%20Engine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354552%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Federico.%20In%20this%20case%20there%20were%20no%20items%20using%20this%20content%20type.%20But%20I%20cannot%20guarantee%20it%20would%20not%20happen%20in%20future.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354229%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20existing%20ContentType%20using%20PnP%20Provisioning%20Engine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354229%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2513%22%20target%3D%22_blank%22%3E%40Alexander%20Auras%3C%2FA%3Eare%20there%20items%20using%20this%20content%20type%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1607100%22%20slang%3D%22en-US%22%3ERe%3A%20Update%20existing%20ContentType%20using%20PnP%20Provisioning%20Engine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1607100%22%20slang%3D%22en-US%22%3EThe%20ability%20to%20update%20existing%20content%20types%20would%20be%20crucial%20to%20scale%20and%20to%20enterprises.%3CBR%20%2F%3EAny%20updates%20on%20this%20query%20would%20be%20very%20helpful.%20Can%20existing%20content%20types%20that%20are%20in%20use%20be%20updated%3F%3C%2FLINGO-BODY%3E
Contributor

How can I update an existing ContentType using the PnP Provisioning Engine?

 

Using <pnp:ContentType ID="0x01006FC4E2F5D9B05C4EAF4786218BB48123" Name="Demo" Overwrite="true"> leads to the below error. Setting Overwrite to false causes the Provisioning Engine to not touch the Content Type at all.

 

Apply-PnPProvisioningTemplate : Another site or list is still using this content type. If you would still like to delete it, please remove the content type from all sites and lists and then try again.

3 Replies

Hi @Alexander Auras are there items using this content type? 

Hello Federico. In this case there were no items using this content type. But I cannot guarantee it would not happen in future. 

The ability to update existing content types would be crucial to scale and to enterprises.
Any updates on this query would be very helpful. Can existing content types that are in use be updated?