Does anyone know if there is anywhere that states ...
# suitescript
k
Does anyone know if there is anywhere that states the ordering of scripts and workflows and which order they are run in? I know about scripted records but i am talking about a workflow that is running on a scheduled context and the script is running before the workflow and is not picking up a field that has been set.
b
user events entry points run before workflow triggers
that does not mean that a user event after submit would run before a workflow's before record submit
k
Well you say that but this is a SCHEDULED workflow context which seems to run after the UE script has run which is so odd
b
be very precise with your wording, the context of a workflow is independent of the initiation
k
True. The workflow actions are all on ENTRY which may also be the issue but they were changed to before submit and still the script ran first.
b
a before record submit workflow should trigger before a user event's after submit
k
Even if it is running on a scheduled saved search trigger?
b
should be equivalent to asking if a record saved in a scheduled script runs before the user event it triggers
k
odd will have to do some more logging in the script and see what is being recorded as the trigger
The scritp does fire but before the field is being set by the workflow.
anyway, thanks for the reply @battk always welcome