So I know a UserEvent script cannot trigger anothe...
# suitescript
c
So I know a UserEvent script cannot trigger another UserEvent script, but can a UserEvent script trigger an AfterSubmit workflow? I don't know much about workflows...
m
Interestingly sort of the exact opposite of my question above. I assume you can do this via the task module - WorkflowTriggerTask
c
Yea, the timing of the two questions is ... well, odd.
I'm just have a UE script on record a making changes on the Vendor record. Someone else wants to trigger a workflow to edit fields on the Vendor rec after my script runs.
e
Depends what do you mean by trigger You can use the
N/workflow
module in a Server script, in this case a User Event
a
Generally, the execution order follows this sequence: User Event (Before Load) Workflow (Before Record Load) User Event (Before Submit) Workflow (Before Record Submit) Record Save User Event (After Submit) Workflow (After Record Submit)
🙏🏻 1
You may want to run your own tests, but it should be something like this ^^.