SharePoint/PnP-JS-Core

How would I update property bag item?

Closed this issue · 2 comments

Category

[ ] Enhancement

[ ] Bug

[ x] Question

I can get AllProperties from web with -

pnp.sp.web.select('AllProperties').expand('AllProperties').get()

Is there any way to update property bag item?

Thanks.

Hey @debasysn,

Unfortunately, property bags are read-only in RESP API, so it's not possible right now, as the ideology of PnP JS Core is to be a wrapper around REST API only.
JSOM API should be used instead now for writing to property bags.

Yet, we're discussing an approach which will potentially allow to workaround such limitation under the hood of the library functionality mimicking some "not yet allowed REST APIs". Not promising anything but please stay tuned.

Going to close this as part of house keeping moving towards EOL for this library in July 2018.

Thank you for your interest in the sp-pnp-js library. We wanted to mention that this library is being deprecated in July, 2018 in favor of the new scoped pnpjs libraries. You should begin transitioning your existing projects when possible, or start new projects with the new libraries. Please see the transition guide for more details on migrating and be sure to let us know if you have any questions. Thanks!