When creating a workflow action script, is there a...
# suitescript
m
When creating a workflow action script, is there any way to detect whether it's running before load, before submit, after submit, etc.? From
scriptContext.type
, I can tell if it's view, create, edit, schedule, etc. But I can't seem to figure out the entry point. Also (still for WFA scripts), is there a way to detect whether it's running as a result of a CSV import or from the UI, etc.? The
executionContext
from N/runtime module always says "WORKFLOW", so I feel like I can't meaningfully differentiate there, either.