i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > services > IResult > addEntity

    services.IResult.addEntity() method

    Adds a new entity record to the result, whose identifier is a source identifier that you create.

    Signature:

    addEntity<TEntityType extends schema.IEntityType>(type: TEntityType, id: records.ISourceIdentifier): records.IResultEntityRecord<TEntityType, records.ISourceIdentifier>;
    

    Introduced: API version 2.0

    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.

    In this article
    Back to top © N. Harris Computer Corporation