New updates on suitescript record browser

Refer to the following sections for details on SuiteScript updates for NetSuite 2023.2:

The 2023.2 SuiteScript Records Browser is not yet available.

N/crypto/random Module

The N/crypto/random Module provides cryptographically secure pseudorandom generator methods. This module provides the following methods:

With these methods, you can generate a random integer using a cryptographically secure pseudorandom number generator (CSPRNG). These methods should be used over Math.random for any values that should not be predictable such as: key generation, unique IDs, tokens, gambling, or statistical sampling.

Alternative Character Encoding for Files in Suitelet Responses

In SuiteScript 2.x, Suitelet textual responses are encoded in UTF-8 by default. If you want to return a file with an alternative character encoding, you can use the following modules in your script:

ServerResponse.writeFile(options) now preserves the file’s encoding if the charset value specified in the header matches the file’s encoding.

Leave a comment

Your email address will not be published. Required fields are marked *