i2 Connect SDK
Search results for

    Show/hide table of contents

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

    services.IResult.addEntityFromSeed() method

    Adds an entity record that was passed to the service as a seed to the result.

    Signature:

    addEntityFromSeed<TEntityType extends schema.IEntityType>(seed: records.ITypedSeedEntityRecord<TEntityType>): records.ISeededResultEntityRecord & records.ITypedSeededResultRecord<TEntityType>;
    

    Introduced: API version 1.0

    Type Parameters

    Parameter Type Description
    TEntityType extends schema.IEntityType The type of the new entity record.

    Parameters

    Parameter Type Description
    seed records.ITypedSeedEntityRecord<TEntityType> The record that was passed to the service method as a seed.

    Returns:

    records.ISeededResultEntityRecord & records.ITypedSeededResultRecord<TEntityType>

    The record that was added to the result.

    Remarks

    When you want to return a seed entity in your result set, use this method in preference to extracting data from the seed and using services.IResult.addEntity().

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