dataStore.Datastore
The content in this help topic pertains to SuiteScript 2.1.
|
Object Description |
Represents a data store containing collections of documents. This object is returned by dataStore.getDatastore(id). Use its Datastore.getCollection(id) method to access a collection within the data store. |
|
Supported Script Types |
Server scripts |
|
Module |
|
|
Methods and Properties |
|
|
Since |
2026.2 |
Datastore Object Members
|
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
|---|---|---|---|---|
|
Method |
Server scripts |
Returns a dataStore.Collection object for the specified collection in this data store. |
Syntax
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 datastore = dataStore.getDatastore('processing');
const collection = datastore.getCollection('checkpoints');
...
// Add additional code