Provision custom content type to Old & New Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-1476374%22%20slang%3D%22en-US%22%3EProvision%20custom%20content%20type%20to%20Old%20%26amp%3B%20New%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1476374%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20requirement%20to%20add%20one%20custom%20site%20column%20'IsGDPR'%20to%20each%20existing%20and%20new%20document%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20planning%20to%20create%20to%20new%20content%20type%20with%20inheriting%20from%20OOB%20'Document'%20content%20type.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20attach%20newly%20created%20content%20type%20to%20existing%20document%20library%20through%20PowerShell%20%2FCSOM%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20is%20it%20there%20way%20to%20auto%20provision%20when%20new%20document%20library%20get%20created%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20suggest%20better%20approach%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1476374%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1477121%22%20slang%3D%22en-US%22%3ERe%3A%20Provision%20custom%20content%20type%20to%20Old%20%26amp%3B%20New%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1477121%22%20slang%3D%22en-US%22%3EAre%20these%20document%20libraries%20within%20a%20single%20site%20or%20across%20multiple%20site%20collections%3F%3CBR%20%2F%3EIf%20multiple%20site%20collections%2C%20are%20you%20planning%20to%20use%20the%20enterprise%20content%20type%20hub%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Contributor

Hello,

 

I have requirement to add one custom site column 'IsGDPR' to each existing and new document library.

 

I am planning to create to new content type with inheriting from OOB 'Document' content type.

 

I will attach newly created content type to existing document library through PowerShell /CSOM

 

But is it there way to auto provision when new document library get created?

 

Please suggest better approach?

1 Reply
Are these document libraries within a single site or across multiple site collections?
If multiple site collections, are you planning to use the enterprise content type hub?