pnp / pnpcore

The PnP Core SDK is a modern .NET SDK designed to work for Microsoft 365. It provides a unified object model for working with SharePoint Online and Teams which is agnostic to the underlying API's being called
https://aka.ms/pnp/coresdk/docs
MIT License
288 stars 188 forks source link

Add the NewFormClientSideComponentId and related properties to the ContentType model #1421

Closed jansenbe closed 4 months ago

jansenbe commented 4 months ago

Discussed in https://github.com/pnp/pnpcore/discussions/1420

Originally posted by **tomasz-sintel** March 13, 2024 When developing an SPFx form customizer, the component needs to be connected to the list via properties in the content type ([reference](https://pnp.github.io/script-samples/spo-add-formextension-to-list/README.html?tabs=pnpps)). Those properties (e.g. NewFormClientSideComponentId) are not available in the ContentType class. Having to have some plug "on the side" in the form of a REST or PS script is not elegant. My request is to add those properties to the ContentType class.
jansenbe commented 4 months ago

@tomasz-sintel: I've just pushed an update adding new fields to the IContentType interface. Give it a try and if things do not work for you please open a new issue with the details.

This update will be part of the next nightly build, closing this now