<@U5TNEF7FW> You would need to use require instead...
# suitescript
j
@karlenigma You would need to use require instead of define I imagine.
Copy code
require(['N/record', 'N/search'], function(record, search) {
    var rec = record.load({type: record.Type.SALES_ORDER, id: 123});
});