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

Adds a condition that the passed column value contains 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 starting with letter "a".

var entity = new MobileCRM.FetchXml.Entity("account");
entity.addAttributes();
var filter = new MobileCRM.FetchXml.Filter();
filter.startsWith("name", "a");
entity.filter = filter;