Home > @i2analyze/i2connect > Result > addEntityWithSourceIdentifier
Result.addEntityWithSourceIdentifier() method
Adds a new entity record to the result, whose identifier is a source identifier that you create.
Signature:
addEntityWithSourceIdentifier<TEntityType extends schema.IEntityType>(type: TEntityType, id: records.ISourceIdentifier): records.IResultEntityRecord<TEntityType, records.ISourceIdentifier>;
Introduced: API version 1.2
Type Parameters
Parameter | Type | Description |
---|---|---|
TEntityType | extends schema.IEntityType | The type of the new entity record. |
Parameters
Parameter | Type | Description |
---|---|---|
type | TEntityType | The entity type of the new record. |
id | records.ISourceIdentifier | A source identifier for the new record. |
Returns:
records.IResultEntityRecord<TEntityType, records.ISourceIdentifier>
The entity record that was added to the result.