Is there an equivalent of context.UserEventType fo...
# suitescript
j
Is there an equivalent of context.UserEventType for Workflow Custom Actions?
e
sxcriptContext.type
It's a string.
j
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
context.type === 'edit' || context.type === 'create
etc
j
OK yeah that’s how I have it now. I thought there might be an enum or something like how there is in UserEvent