-
Notifications
You must be signed in to change notification settings - Fork 304
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
sp unable to retrieve publishing image #912
Comments
Publishing fields are just different and I am not aware of a way to not have two calls. You would need to try it out and see, not sure off the top of my head what the right field name would be, but I think that pattern should still work for you. |
Thanks but the regex matches Like I show in the OP, the metainfo property is empty - how do I expand on the Publishing Image field? |
I didn't catch the first time that you are using a publishing field outside of a pages library. Please see this issue from awhile ago and see if that helps you out. That is for an older version of the library but the code should mostly be the same. |
Going to close this as answered. If you are still having issues please open a new issue and reference this one with additional details. Thanks! |
Thank You Patrick very much. Your answer helped me, but I used combination of answers(not sure if 100% correct but worked for me). Also updated code to use new pnp version. So code looks something like this:
and my IListItem.ts interface is:
Thank You twice @patrick-rodgers |
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. |
I have a list with a profile image, which is the type
Publishing Image
. I do not see this as a property of my list item.I looked up the docs and saw that I had to do differently for publishing-related fields: https://pnp.github.io/pnpjs/sp/docs/items/
Do I have to change the regex match from /PublishingPageImage:SW -> /PublishingImage?
I would like to select all properties as I want the user to pick what properties they want to display, as I would prefer not having two calls in lieu of the .select('fieldvalues')
This is what FieldValuesAsText returns:
FieldValuesAsText:
MetaInfo: ""
odata.editLink: "Web/Lists(guid'124215')/Items(1)/FieldValuesAsText"
odata.id: "url/FieldValuesAsText"
odata.type: "SP.FieldStringValues"
The text was updated successfully, but these errors were encountered: