random.generateUUID()
Note:
The content in this help topic pertains to SuiteScript 2.1
Method Description |
Method used to generate a v4 UUID using a cryptographically secure random number generator. |
Returns |
string |
Supported Script Types |
Client and server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2023.1 |
Syntax
Note:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/crypto/random Samples.
//Add additional code
...
var uuid = random.generateUUID();
...
//Add additional code