Creates an entity record
Logical name of the entity you want to create. For example: "account".
A JSON object defining the attributes and values for the new entity record.
On success, returns a promise object containing the attributes specified earlier in the description of the successCallback parameter.
Deletes an entity record.
The entity logical name of the record you want to delete. For example: "account".
GUID of the entity record you want to delete.
On success, returns a promise object containing the attributes specified earlier in the description of the successCallback parameter.
Execute a single action, function, or CRUD operation.
Object that will be passed to the Web API endpoint to execute an action, function, or CRUD request.
External Link: Xrm.WebApi.online.execute (Client API reference)
The object exposes a getMetadata method that lets you define the metadata for the action, function or CRUD request you want to execute.
The getMetadata method has the following parameters:
Execute a collection of action, function, or CRUD operations.
An array of one of one of the following types: -objects where each object is an action, function, or CRUD request that you want to execute * against the Web API endpoint. Each object exposes a getMetadata method that lets you define the metadata for the action, function or CRUD request you want to execute. This is the same object that you pass in the execute method. For information about the object, see execute. -change set (an array of objects), where each object in the change set is as defined above. * In this case, all the request objects specified in the change set will get executed in a transaction.
Retrieves a collection of entity records.
The entity logical name of the records you want to retrieve. For example: "account".
Optional
options: string(Optional) OData system query options or FetchXML query to retrieve your data.
Optional
maxPageSize: number(Optional) Specify a positive number that indicates the number of entity records to be returned per page.
On success, returns a promise object containing the attributes specified earlier in the description of the successCallback parameter.
Retrieves an entity record.
The entity logical name of the record you want to retrieve. For example: "account".
GUID of the entity record you want to retrieve.
Optional
options: string(Optional) OData system query options, $select and $expand, to retrieve your data.
On success, returns a promise containing a JSON object with the retrieved attributes and their values.
options example:
options: $select=name&$expand=primarycontactid($select=contactid,fullname)
Updates an entity record.
The entity logical name of the record you want to update. For example: "account".
GUID of the entity record you want to update.
On success, returns a promise object containing the attributes specified earlier in the description of the successCallback parameter.
Generated using TypeDoc
Interface for the online API Execute and ExecuteMultiple are only available when online, not offline.