Use SuiteScript in Browser Console

open the browser console.  just right-click somewhere on the page and find the option to inspect the page.

Unlike actual SuiteScripts, we can only import modules using require() instead of define(). Using require() will load in any dependencies that are needed.

Import a module by assigning it to a variable. For example, to import the Record module, declare a variable called “record” and assign it to the imported module
const record = require('N/record')
This allows to use the record variable easily. Once the currentRecord (or other module) loads, full SuiteScript module functionality is granted.

Leave a comment

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