ebs.insertAsync (Deprecated)

(FintechOS Studio 20.2 and later)

IMPORTANT!  
This function has been deprecated starting with v24.1. To re-enable it, use the the sys-do-not-allow-client-side-direct-data-updates system parameter.

Asynchronously adds a new record to an entity. The result of the operation is returned in a promise object.

Syntax

Copy
ebs.insertAsync(modifyRequest: IModifyRequest): Promise<any>

Where IModifyRequest has the following syntax:

Copy
{
    EntityName: "<<i>parent_entity</i>>",
    Values: [
        {
            Attribute: "<<i>attribute_name</i>>",
            Value: "<<i>attribute_value</i>>"
        },
        ...
        {
            Attribute: "<<i>attribute_name</i>>",
            Value: "<<i>attribute_value</i>>"
        },
    ]
}
 
Parameter Description
parent_entity Name of the entity where you wish to insert the record.
attribute_name Attribute name of the record you wish to insert.
attribute_value The value you wish to insert for the record's attribute.

Result

The promise result is a JSON object containing key-value pairs detailing the insert operation, such as the ones listed below:

Key Description
Id Unique identifier of the record you inserted.
Message Indicates the outcome of the call.
IsSuccess Indicates if the record insert was successful.

Examples