I have a scheduled Workflow which sets a field val...
# suitescript
s
I have a scheduled Workflow which sets a field value, but my User Event AfterSubmit does not run. The Context includes Workflows. What other reasons might there be?
m
Make sure the UE script is executing in the "Scheduled Script" execution context rather than Workflow. Is the scheduled script using
.submitFields()
to set that field value? If so, is the user event script checking for
EDIT
and
XEDIT
contexts?
.submitFields()
usually generates an
XEDIT
event rather than an
EDIT
event.
s
Sorry @Mike Robbins my bad, it's a scheduled WORKFLOW. Got so frustrated at it not working I'm not typing straight.
Gave up and created a WFA to modify the field instead.