Rest to filter files using modified date
-
07-01-2021 - |
Pregunta
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 hay solución correcta
Otros consejos
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";
Licenciado bajo: CC-BY-SA con atribución
No afiliado a sharepoint.stackexchange