Document._id

Note:

The content in this help topic pertains to SuiteScript 2.1.

Property Description

The system-generated document identifier.

Use it in queries to identify the document. It can't be changed through an update.

Type

string

Supported Script Types

Server scripts

Module

N/dataStore Module

Parent Object

dataStore.Document

Sibling Object Members

Document 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 = document._id;

...
// Add additional code 

          

General Notices