7

对来自 JavaScript 的多个字段/值对应用$filter命令时,过滤多个字段的正确方法是什么?

4

2 回答 2

8

这是非常规范的。

http://192.168.75.8:5555/Konrad01/
  xrmservices/2011/OrganizationData.svc/
  LeadSet%28%29?$filter=
    Field1%20eq%20%27Value1%27%20and%20Field2%20eq%20%27Value2%27

编辑:

更易读的版本。

http://Server:Port/Organization/XrmServices/2011/OrganizationData.svc/
  LeadSet()?$filter=Field1 eq 'Value1' and Field2 eq 'Value2'
于 2013-03-07T18:57:05.820 回答
4

and中间放一个

例子:

http://YourServer.com/YourOrg/xrmservices/2011/OrganizationData.svc/ContactSet()?$filter=FirstName eq 'George' and LastName eq 'Washington'

于 2013-03-07T16:50:47.093 回答