Mitchell Mudd
02/13/2023, 3:47 PMdefine(['N/record'], function () {
return {
get: function (record) {
log.debug('record', record);
var currentCustomer = record.load({
type: record.Type.CUSTOMER,
id: 123456789
});
log.debug('currentCustomer', currentCustomer);
var mySublist = currentCustomer.getSublist({
sublistId: 'recmachcustrecord_customer'
});
log.debug('mySublist', mySublist);
return mySublist;
}
}
});
SOLVED: The issue was that I was passing record to the get function instead of the parent function where I'm defining the record module