Azi
10/23/2018, 6:52 PMvar record, curecModule, currentRecord, search, runtime, xml, format, email;
require(['N/record', 'N/currentRecord', 'N/search', 'N/runtime', 'N/xml', 'N/format', 'N/email'],
function(r, c, s, u, x, f, e) {
record = r;
email = e;
currentRecord = c.get();
search = s;
runtime = u;
xml = x;
format = f;
curecModule = c;
console.log("2.0 Modules Loaded!");
});
You can add whatever modules you need.
I keep it as a code snippet using phrase express and set a keyboard shortcut.
Using this code snippet doesn't require 2 separate entries into the console.