UpdateResult.updatedCount

Note:

The content in this help topic pertains to SuiteScript 2.1.

Property Description

The number of documents updated.

This property is read-only. When there are no document matches, the value is 0.

Type

number

Supported Script Types

Server scripts

Module

N/dataStore Module

Parent Object

dataStore.UpdateResult

Sibling Object Members

UpdateResult 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.updatedCount;

...
// Add additional code 

          

General Notices