简体   繁体   English

如何为 sharepoint rest api 过滤器中的查找字段提供两个条件

[英]How to give two conditions for lookup field in sharepoint rest api filter

Screenshot of Lookup column setting I am trying to retrieve data from a list containing the lookup field.查找列设置的屏幕截图我正在尝试从包含查找字段的列表中检索数据。 I want to check values in the lookup column list.我想检查查找列列表中的值。 My API is - _api/web/lists/GetByTitle('ApprovalMaster')/items?$select=Id,Comment,RowId,ApproverStatus,Modified,FormId/Id,FormId/ListName,FormId/FormName,FormId/Created,FormId/Status&$filter=(FormId/SubmitterId eq 1 and FormId/FormName eq 'SFO')&$expand=FormId我的 API 是 - _api/web/lists/GetByTitle('ApprovalMaster')/items?$select=Id,Comment,RowId,ApproverStatus,Modified,FormId/Id,FormId/ListName,FormId/FormName,FormId/Created,FormId/状态&$filter=(FormId/SubmitterId eq 1 and FormId/FormName eq 'SFO')&$expand=FormId

I have tried many combinations but nothing worked.我尝试了很多组合,但没有任何效果。 It is giving results when I try with a single condition but it is not giving results combining the two conditions.当我尝试使用单个条件时它会给出结果,但它不会给出结合这两个条件的结果。 Any help will be appreciated.任何帮助将不胜感激。

Try to modify like below:尝试修改如下:

_api/web/lists/GetByTitle('ApprovalMaster')/items?$select=Id,Comment,RowId,ApproverStatus,Modified,FormId/Id,FormId/ListName,FormId/FormName,FormId/Created,FormId/Status&$filter=(FormId/FormName eq 'SFO' and FormId/SubmitterId eq 1)&$expand=FormId

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM