pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
764 stars 304 forks source link

How add a site column to a site content type using pnp sp. #3156

Closed jamesm2024 closed 3 weeks ago

jamesm2024 commented 1 month ago

What version of PnPjs library you are using

3.x (No longer supported)

Minor Version Number

3.25.0

Target environment

SharePoint Framework

Additional environment details

SharePoint Online, React

Question/Request

I am trying to add a site column to a site content type using pnp sp. Im wondering if there is any further progress as I have read the unfortunate outcomes of both previous issues: How to add/associate a site column to a content type? #290 and Assign a site column to content type or list content type? #1379

juliemturner commented 1 month ago

Those work arounds still work. But the graph endpoint has been implemented: https://pnp.github.io/pnpjs/graph/columns/#add-a-column-reference-content-types

Note: I believe these were there in v3, the one you've referenced but I would move to v4.

juliemturner commented 3 weeks ago

I'm going to close this issue as answered. If you have further issues, please feel free to create a new issue and reference this one.

github-actions[bot] commented 3 weeks ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.