-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.FetchXml.Filter.where
rescocrm edited this page May 15, 2023
·
8 revisions
Adds a attribute condition to the filter.
| Argument | Type | Description |
|---|---|---|
| attribute | String | The attribute name (CRM logical field name). |
| op | String | The condition operator. "eq", "ne", "lt", "le", "gt", "ge", "like" |
| value | Depends on attribute type | The values to compare to. |
Following example creates the fetch entity for account with filter on entities starting with letter "a".
var entity = new MobileCRM.FetchXml.Entity("account");
entity.addAttributes();
var filter = new MobileCRM.FetchXml.Filter();
filter.where("name", "like", "a%");
entity.filter = filter;