ebs.massInsert

Inserts multiple records to one or more entities.

Syntax

Copy
massInsertEbs(modifyRequest: IModifyRequestCollection, callback: any, errorCallback: any): void

Where IModifyRequestCollection has the following syntax:

Copy
{
    {
        EntityName: "<parent_entity>",
                Values: [
                     {
                        Attribute: "<attribute_name>",
                        Value: "<attribute_value>"
                    },
                    ...
                    {
                        Attribute: "<attribute_name>",
                        Value: "<attribute_value>"
                    },
                ]
    },
    {
        EntityName: "<parent_entity>",
                Values: [
                    {
                        Attribute: "<attribute_name>",
                        Value: "<attribute_value>"
                    },
                    ...
                    {
                        Attribute: "<attribute_name>",
                        Value: "<attribute_value>"
                    },
                ]
        },

]}

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.

Response

 
Key Description
Id Unique identifier of one of the records you inserted.
Message Indicates the number of records that were inserted.
IsSuccess Indicates if the record insert was successful.

Examples