I am getting an error. Can someone tell me what I am doing wrong? function beforeLoad(context) {
//log.debug({ title: 'SALES ORDER ID', details: JSON.stringify(scriptContext.newRecord.id) });
if (context.type == context.UserEventType.CREATE && context.executionContext === context.ContextType.USER_INTERFACE) {