https://netsuiteprofessionals.com logo
j

jen

04/21/2022, 7:44 PM
Is there an equivalent of context.UserEventType for Workflow Custom Actions?
e

ehcanadian

04/21/2022, 7:51 PM
sxcriptContext.type
It's a string.
j

jen

04/21/2022, 11:41 PM
what I mean is if I want to compare
e.g.
context.type == context.UserEventType.EDIT
in a UE script. What’s the equivalent in a WF Action script?
e

ehcanadian

04/22/2022, 12:28 AM
context.type === 'edit' || context.type === 'create
etc
j

jen

04/22/2022, 2:29 PM
OK yeah that’s how I have it now. I thought there might be an enum or something like how there is in UserEvent