Home > @i2analyze/i2connect > services > IResult > getEntity
services.IResult.getEntity() method
Gets a previously added entity record from the result, whose identifier is a source identifier that you created.
Signature:
getEntity<TEntityType extends schema.IEntityType>(type: TEntityType, id: records.ISourceIdentifier): records.IResultEntityRecord<TEntityType, records.ISourceIdentifier> | undefined;
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
TEntityType | extends schema.IEntityType | The type of the entity record. |
Parameters
Parameter | Type | Description |
---|---|---|
type | TEntityType | The entity type of the record. |
id | records.ISourceIdentifier | The source identifier of the record. |
Returns:
records.IResultEntityRecord<TEntityType, records.ISourceIdentifier> | undefined
The entity record that was previously added to the result, or undefined
if it was not previously added.