DocumentMetadata.byteLength
The content in this help topic pertains to SuiteScript 2.1.
|
Property Description |
The size of the normalized JSON document body in bytes. This property is read-only. The size is measured after UTF-8 encoding and excludes the generated |
|
Type |
number |
|
Supported Script Types |
Server scripts |
|
Module |
|
|
Parent Object |
|
|
Sibling Object Members |
|
|
Since |
2026.2 |
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 value = metadata.byteLength;
...
// Add additional code