Document Information Panel in office 365 apps + open by default

%3CLINGO-SUB%20id%3D%22lingo-sub-2097408%22%20slang%3D%22en-US%22%3EDocument%20Information%20Panel%20in%20office%20365%20apps%20%2B%20open%20by%20default%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2097408%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20all%3C%2FP%3E%3CP%3EI%20didn't%20find%20a%20related%20topic%20here%20so%20I%20want%20to%20ask%20the%20following%20question%3C%2FP%3E%3CP%3EWe%20want%20to%20use%20the%20%22Document%20Information%20panel%22%20with%20Office%20365%20apps%20and%20Sharepoint%20online%20so%20that%20user%20complete%20metadata.%3C%2FP%3E%3CP%3ESo%20far%20i%20know%20how%20to%20make%20it%20appear%20automatically%20with%20the%20GUI%20from%20the%20content%20type%20setting.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20if%20there%20is%20a%20way%20to%20make%20that%20option%20the%20default%20one%20or%20any%20way%20to%20have%20it%20activated%20by%20default%20and%20not%20do%20it%20manually%20for%20each%20content%20type.%3C%2FP%3E%3CP%3Ei%20was%20able%20to%20manage%20it%20via%20the%20content%20type%20hub%20but%20I%20don't%20want%20to%20use%20the%20content%20type%20hub.%3C%2FP%3E%3CP%3EI%20didn't%20find%20the%20option%20with%20pnp%20powershell%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20you%20didn't%20advise%20at%20all%20to%20use%20the%20%22Document%20information%20panel%22%20at%20all%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2097408%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138445%22%20slang%3D%22en-US%22%3ERe%3A%20Document%20Information%20Panel%20in%20office%20365%20apps%20%2B%20open%20by%20default%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138445%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F492370%22%20target%3D%22_blank%22%3E%40Vertebre85%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20reply%20partially%20to%20myself%20so%20it%20can%20help%20other%20if%20required.%3C%2FP%3E%3CP%3EWIth%20PNP%20powershell%2C%20we%20can%20retrieve%20the%20XML%20schema%20for%20the%20content%20type%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24data%20%3D%20Get-PnPContentType%20-Identity%200x01010028739CF52E3CB54CB6EA0883DB4E825D%0A%24data2%3D%20%24data.SchemaXml%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ei%20should%20change%20the%20value%20%22openByDefault%22%20from%20True%20to%20false%20at%20the%20end%20of%20the%20schema%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vertebre85_0-1613460655329.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F255192iC6056270D75CF2E4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Vertebre85_0-1613460655329.png%22%20alt%3D%22Vertebre85_0-1613460655329.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20a%20proper%20way%20to%20do%20it%3F%20Pretty%20new%20with%20powershell%20and%20not%20sure%20how%20to%20update%20it%20correctly.%3C%2FP%3E%3CP%3EProbalby%20something%20with%20%22.Context.ExecuteQuery()%22%20and%20so%20on%2C%20but%20with%20the%20Schema%20containing%20%22%20and%20'%2C%20i'm%20strugling%20to%20update%20it%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Dear all

I didn't find a related topic here so I want to ask the following question

We want to use the "Document Information panel" with Office 365 apps and Sharepoint online so that user complete metadata.

So far i know how to make it appear automatically with the GUI from the content type setting.

I would like to know if there is a way to make that option the default one or any way to have it activated by default and not do it manually for each content type.

i was able to manage it via the content type hub but I don't want to use the content type hub.

I didn't find the option with pnp powershell

 

Or you didn't advise at all to use the "Document information panel" at all?

1 Reply

@Vertebre85 

I reply partially to myself so it can help other if required.

WIth PNP powershell, we can retrieve the XML schema for the content type

$data = Get-PnPContentType -Identity 0x01010028739CF52E3CB54CB6EA0883DB4E825D
$data2= $data.SchemaXml

i should change the value "openByDefault" from True to false at the end of the schema

Vertebre85_0-1613460655329.png

 

is there a proper way to do it? Pretty new with powershell and not sure how to update it correctly.

Probalby something with ".Context.ExecuteQuery()" and so on, but with the Schema containing " and ', i'm strugling to update it