Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

New Feature to add and get Indexed Properties #455

Closed
ravenboilinux opened this issue May 12, 2017 · 5 comments
Closed

New Feature to add and get Indexed Properties #455

ravenboilinux opened this issue May 12, 2017 · 5 comments

Comments

@ravenboilinux
Copy link

Category

[ X] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 2.0.5 ]

Expected / Desired Behavior / Question

Index Properties are just properties, in the SPWeb/SPFolder property-bag, that have been added to the key has been added to the vti_indexedpropertykeys property in the site. I wanted to know if we can add something like this

pnp.sp.web.indexedproperties.get() -- which would return all of the keys that are indexed

pnp.sp.web.indexedproperties.add()--which would first check if the property exists on the property bag and then base64 encodes and updates the vti_indexedpropertykeys with it

@patrick-rodgers
Copy link
Contributor

I don't believe we can get at the property bags with REST, but has been a bit since I checked so will have another look.

@russgove
Copy link
Contributor

russgove commented May 15, 2017 via email

@patrick-rodgers
Copy link
Contributor

Thanks @russgove - just had a look at that and the issue is that it users the sp.js library to do the actual updates which is a dependency we want to avoid. I do agree it would be great to wrap the props and be able to update them (including searchability). So will leave this one open but marked as awaiting API support for now.

@ravenboilinux
Copy link
Author

The worst part is if you look at the SPPropertyValuesServerStub it has a method called SetFieldValue that is targeted to all client library targets

@patrick-rodgers
Copy link
Contributor

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!

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

No branches or pull requests

3 participants