MobileCRM.FetchXml.Entity.addAttribute - Resconet/JSBridge GitHub Wiki

Adds an entity attribute to the fetch query.

Arguments

Argument Type Description
name String The attribute (CRM logical field name) to order by.
alias String Optional parameter defining an attribute alias.
aggregate String Optional parameter defining an aggregation function.

Following example creates the fetch entity for account with two attributes.

var entity = new MobileCRM.FetchXml.Entity("account");
entity.addAttribute("accountid");
entity.addAttribute("name");
entity.addAttribute("address1_line1");