define(['N/log'], function (log) { function afterSubmit(context) { log.debug({ title: 'afterSubmit', details: 'UserEventType: ' + context.UserEventType + ', Internal id: ' + context.newRecord.id }); } });