MobileCRM.FetchXml.Filter.where - Resconet/JSBridge GitHub Wiki

Adds a attribute condition to the filter.

Arguments

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;