SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

This page might benefit from some clarity about the ContentType properties. #8465

Open martinlingstuyl opened 2 years ago

martinlingstuyl commented 2 years ago

Hi guys,

This page is not very explanatory when it comes to deploying the Form Customizer Extensions. Even though I've deployed a lot of SPFx extensions, I found myself trying to updating a content type using ContentType.NewFormClientSideComponentId, which will not work of course. It may be stupid on my part, but the page would benefit from a deployment example using (for example) PnP PowerShell or the CLI for Microsoft 365:

Connecting a display form Form Customizer extension to a contenttype using the CLI for Microsoft 365:

m365 spo contenttype set --id 0x001001 --webUrl https://contoso.sharepoint.com --DisplayFormClientSideComponentId 'e429c36f-b4ab-4a0a-a14f-e15920cdd53b' --DisplayFormClientSideComponentProperties '{ \"someProperty\": \"some value\" }'

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.