ebs.updateAsync (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 updates attribute values for a specific record. You can update multiple attributes of the same record in the same call. The result of the operation is returned in a promise object.

Syntax

Copy
ebs.updateAsync(modifyRequest: IModifyRequestCollection): Promise<any>

Where IModifyRequestCollection has the following syntax

Copy
{
        Id: "<<i>record_id</i>>",
        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>>"
            }
        ]
    }<![CDATA[
]]>
 
Parameter Description
record_id Unique identifier of the record you wish to update.
parent_entity Name of the parent entity of the record you wish to update.
attribute_name Name of the record's attribute you wish to update.
attribute_value The value you wish to allocate the record's attribute.

Result

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

Key Description
Id Unique identifier of he record you updated.
Message Indicates the outcome of the record update.
IsSuccess Indicates if the record update was successful.

Examples