Rest to filter files using modified date
-
07-01-2021 - |
Question
I am using below api to get files in descending order of modified date, but it not working.
url = _spPageContextInfo.webServerRelativeUrl + "/_api/Web/GetFolderByServerRelativeUrl('EmployeeDocumentList/703079322')?$expand=Files/ListItemAllFields&$orderby=TimeLastModified desc";
Is there anything that I am missing over here?
No correct solution
OTHER TIPS
Internal name for Modified Item Date is Modified
.
Hence, your query should be:
url = _spPageContextInfo.webServerRelativeUrl + "/_api/Web/GetFolderByServerRelativeUrl('EmployeeDocumentList/703079322')?$expand=Files/ListItemAllFields&$orderby=Modified desc";
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange