记录一下 Stack Overflow的答案
define(['N/record', 'N/search', 'N/runtime', 'N/format', 'N/config'],
function (record, search, runtime, format, config) {
function afterSubmit(context) {
if(runtime.executionContext === runtime.ContextType.MAP_REDUCE) {
return;
}
}
return {
afterSubmit: afterSubmit
}
}
);