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

Adds a condition that the passed column starts with the passed string.

Arguments

Argument Type Description
attribute String The attribute name (CRM logical field name).
value String The value to compare to.

Following example creates the fetch entity for account with filter on entities containing "555" in phone number.

var entity = new MobileCRM.FetchXml.Entity("account");
entity.addAttributes();
var filter = new MobileCRM.FetchXml.Filter();
filter.contains("telephone1", "555");
entity.filter = filter;