1

I have SharePoint 2013 Picture Library. I am using below REST API to access my library.

_spPageContextInfo.webAbsoluteUrl + "/_api/web/getfolderbyserverrelativeurl('" + listName + "')/files" + filter

But it does not return all the fields of this Picture Library.

I need to fetch Description and ServerRelativeUrl.

But the Description field is missing in the response.

Please refer below REST API response that I am getting ::

enter image description here

please suggest me if anyone have any idea.

Thanks.

3

Try it as below:

_spPageContextInfo.webAbsoluteUrl + "/_api/web/getfolderbyserverrelativeurl('" + listName + "')/files" + filter&$expand=ListItemAllFields

You need to add ListItemAllFields in the REST endpoint

  • Thanks a lot Gautam for your quick response. Appending '$expand=ListItemAllFields' to the URL worked for me. – Rohit Waghela Feb 20 '17 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.