Skip to content

Commit c75bd79

Browse files
Abel MilashSaurabh Badenkal
authored andcommitted
Add filter_in using Microsoft.Dynamics.CRM.In function
1 parent cd69b47 commit c75bd79

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
@@ -296,6 +296,7 @@ query = (client.query.builder("contact")
296296
.filter_eq("statecode", 0) # statecode eq 0
297297
.filter_gt("revenue", 1000000) # revenue gt 1000000
298298
.filter_contains("name", "Corp") # contains(name, 'Corp')
299+
.filter_in("statecode", [0, 1]) # Microsoft.Dynamics.CRM.In(...)
299300
.filter_between("revenue", 100000, 500000) # (revenue ge 100000 and revenue le 500000)
300301
.filter_null("telephone1") # telephone1 eq null
301302
)
@@ -304,7 +305,7 @@ query = (client.query.builder("contact")
304305
For complex logic (OR, NOT, grouping), use the composable expression tree with `where()`:
305306

306307
```python
307-
from PowerPlatform.Dataverse.models.filters import eq, gt, between
308+
from PowerPlatform.Dataverse.models.filters import eq, gt, filter_in, between
308309

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

0 commit comments

Comments
 (0)