Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamesm2024 opened this issue Oct 22, 2024 · 1 comment
Open

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

jamesm2024 opened this issue Oct 22, 2024 · 1 comment

Comments

@jamesm2024
Copy link

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
Copy link
Collaborator

juliemturner commented Oct 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants