InsertManyResult.inserted

Note:

The content in this help topic pertains to SuiteScript 2.1.

Property Description

An array of dataStore.InsertOneResult objects, with one element for each document.

This property is read-only. Results follow the order of the input documents. The array is empty when the input array is empty.

Type

dataStore.InsertOneResult[]

Supported Script Types

Server scripts

Module

N/dataStore Module

Parent Object

dataStore.InsertManyResult

Sibling Object Members

InsertManyResult Object Members

Since

2026.2

Syntax

Important:

The following code sample shows the syntax for this member. It isn't a functional example. For a complete script example, see N/dataStore Module Script Samples.

            // Add additional code
...

const value = result.inserted;

...
// Add additional code 

          

General Notices