This example assumes that the record module is set to the variable RECORDMODULE, as shown below.
require(['N/record'], function(RECORDMODULE){
var recordType = RECORDMODULE.Type.SALES_ORDER; //The type of record to load.
var recordID = 100; //The internal ID of the existing record instance in NetSuite.
var isDynamic = true; //Determines whether to load the record in dynamic mode.
var loadedRecord = RECORDMODULE.load({
type: recordType,
id: recordID,
isDynamic: isDynamic,
});
});