用于Createdby的SharePoint REST API筛选器

时间:2018-09-21 22:55:03

标签: rest sharepoint filter

我继承了一个JSOM应用程序,该应用程序带有一个人员选择器,并假定将返回选定用户创建的所有项目。

电话如下:

https://sitex/sites/_vti_bin/listdata.svc/CPSEDailyReportPictureLibrary?$ expand = CreatedBy&$ filter =(((CreatedBy / Name eq'Ken Jasper')))&$ orderby =创建了desc&$ top = 40&$ skip = 0&$ inlinecount = allpages

请您帮忙。谢谢

1 个答案:

答案 0 :(得分:0)

字段名称不是CreatedBy,而是Author

尝试一下:

https://yoursite/_api/web/lists/GetByTitle('CPSEDailyReportPictureLibrary')/items?$select=ID,Title,Author/Title&$filter=Author/Title eq 'Ken Jasper'&$expand=Author&$orderby=Created desc&$top=40&$skip=0&$inlinecount=allpages