Skip to content

MobileCRM.FetchXml.Entity.addLink

rescocrm edited this page May 15, 2023 · 8 revisions

Adds an entity link (join) to the fetch query.

Arguments

Argument Type Description
target String The target entity.
from String The "from" field (if parent then target entity primary key).
to String The "to" field.
linkType String The link (join) type ("inner" or "outer").

Following example creates the fetch entity for account with linked primary contact.

var entity = new MobileCRM.FetchXml.Entity("account");
entity.addAttributes();
var linkEntity = entity.addLink("contact", "parentcustomerid", "accountid", "outer");
linkEntity.addAttribute("fullname");
Clone this wiki locally