Skip to content

Commit 1605d4c

Browse files
author
Abel Milash
committed
Add filter_in using Microsoft.Dynamics.CRM.In function
1 parent e90faeb commit 1605d4c

7 files changed

Lines changed: 843 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ query = (client.query.builder("contact")
258258
.filter_eq("statecode", 0) # statecode eq 0
259259
.filter_gt("revenue", 1000000) # revenue gt 1000000
260260
.filter_contains("name", "Corp") # contains(name, 'Corp')
261+
.filter_in("statecode", [0, 1]) # Microsoft.Dynamics.CRM.In(...)
261262
.filter_between("revenue", 100000, 500000) # (revenue ge 100000 and revenue le 500000)
262263
.filter_null("telephone1") # telephone1 eq null
263264
)
@@ -266,7 +267,7 @@ query = (client.query.builder("contact")
266267
For complex logic (OR, NOT, grouping), use the composable expression tree with `where()`:
267268

268269
```python
269-
from PowerPlatform.Dataverse.models.filters import eq, gt, between
270+
from PowerPlatform.Dataverse.models.filters import eq, gt, filter_in, between
270271

271272
# OR conditions: (statecode = 0 OR statecode = 1) AND revenue > 100k
272273
for record in (client.query.builder("account")

0 commit comments

Comments
 (0)