1. Javascript SDK

Class EntitiesClient

The client responsible for getting, saving and deleting entities.

Constructors

EntitiesClient()

Declaration

new EntitiesClient()

Functions

getAsync(param, loadConfiguration)

Gets the xref:IEntity instance with the specified id or identifier.

Declaration

function getAsync(param, loadConfiguration)

Parameters

TypeNameDescription
paramThe id or identifier of the entity to get
loadConfigurationThe loading configuration for the entity

Returns

TypeDescription
The entity or null when it was not found.

getManyAsync(param, loadConfiguration)

Gets the xref:IEntity instances with the specified ids or identifiers.

Declaration

function getManyAsync(param, loadConfiguration)

Parameters

TypeNameDescription
paramThe ids or identifiers of the entities to get
loadConfigurationThe loading configuration for an entity

Returns

TypeDescription
List of entities.

getByDefinitionAsync()

{@inheritDoc}

Declaration

function getByDefinitionAsync()

getIdsByDefinitionAsync()

{@inheritDoc}

Declaration

function getIdsByDefinitionAsync()

getEntityIterator()

{@inheritDoc}

Declaration

function getEntityIterator()

getEntityIdIterator()

{@inheritDoc}

Declaration

function getEntityIdIterator()

saveAsync()

{@inheritDoc}

Declaration

function saveAsync()

deleteAsync()

{@inheritDoc}

Declaration

function deleteAsync()

createEntityAsync(entity)

Creates the specified xref:IEntity in the system.

Declaration

function createEntityAsync(entity)

Parameters

TypeNameDescription
entityThe entity to create/save in the system

updateEntityAsync(entity)

Update the specified xref:IEntity.

Declaration

function updateEntityAsync(entity)

Parameters

TypeNameDescription
entityThe entity to update

single(queryResult)

Get an xref:IEntity or null from the specified IEntityQueryResult.

Declaration

function single(queryResult)

Parameters

TypeNameDescription
queryResultThe query result (should contain one or no items)

Returns

TypeDescription
An xref:IEntity or null.
If you have suggestions for improving this article, let us know!