KnotKnick
11/21/2019, 3:58 PMif(scriptContext.type == scriptContext.UserEventType.EDIT || scriptContext.type == scriptContext.UserEventType.XEDIT || scriptContext.type == scriptContext.type == scriptContext.UserEventType.CREATE || scriptContext.type == scriptContext.type == scriptContext.UserEventType.COPY){
var customRecordId = createCustomRecord();
log.debug('Custom Integration Record Id', customRecordId);
}
NElliott
11/21/2019, 4:40 PM|| scriptContext.type == scriptContext.type == scriptContext.UserEventType.CREATE || scriptContext.type == scriptContext.type == scriptContext.UserEventType.COPY
you've probably doubled up when you pasted...NElliott
11/21/2019, 4:40 PM|| scriptContext.type == scriptContext.UserEventType.CREATE || scriptContext.type == scriptContext.UserEventType.COPY
KnotKnick
11/21/2019, 5:30 PMerictgrubaugh
11/21/2019, 6:12 PMbeforeLoad
erictgrubaugh
11/21/2019, 6:13 PMif ([
scriptContext.UserEventType.COPY,
scriptContext.UserEventType.CREATE,
scriptContext.UserEventType.EDIT,
scriptContext.UserEventType.XEDIT
].indexOf(scriptContext.type) > -1) {
KnotKnick
11/21/2019, 8:17 PMindexOf(scriptContext.type) > -1
? and is there something similar for COPT in afterSubmit
?erictgrubaugh
11/21/2019, 8:44 PMcopy
event becomes a create
during the submit eventsjen
11/21/2019, 10:57 PMKnotKnick
11/22/2019, 3:56 PM