首页 > 解决方案 > OData 扩展字段并按它们过滤

问题描述

我正在尝试使用以下 URL 进行 odata 请求并且它可以工作:

https://localhost:44379/api/lawyerswebservice/teammembers?$expand=RelatedTeam,Offices,RelatedExpertise,RelatedLocation

但是,当我添加这样的过滤器时:

https://localhost:44379/api/lawyerswebservice/teammembers?$filter=(contains(Title,'j')) and RelatedLocation/Id eq 69dce15b-6194-4d87-9090-7e5278267284&$expand=RelatedTeam,Offices,RelatedExpertise,RelatedLocation

这没用。目标是获取所有位置的 id 为 69dce15b-6194-4d87-9090-7e5278267284 且标题包含“j”的团队成员。我的语法错误还是其他?

有没有办法作为选择查询来做到这一点。看来这是一个站点限制错误:https ://knowledgebase.progress.com/articles/Article/OData-Query-filter-by-parent-dynamic-content-item-custom-field

标签: filterodatasitefinity

解决方案


推荐阅读