mardi 23 décembre 2014

Getting document name using REST (not title) while filtering document library



I am trying to filter through a list and return metadata of the documents in that filter. How do I return the name of a document from a document library using REST while being able to filter the document library? I can bring back the title field, but that isn't always the name of the document.


I tried doing a select all in my query and still couldn't see it. The closest I can get is _api/Web/lists/getbytitle('MyList')/Items(2)/FieldValuesAsText. If I query this then I can get the name of the item. However, I'm not sure how to do this while filtering the list.


My original query is _api/lists/getbytitle('MyList')/items?$select=Title,Category,ReviewDate&$filter=ReviewDate ge 'today'.








0 commentaires:

Enregistrer un commentaire