so for example i am using a billing operation to generate this invoice. but this does not execute the workflow that is active on the invoice record. this workflow changes a value on 'beforeSubmit'.
Menno Janssen
04/03/2020, 5:51 PM
I am wondering if a Script does provide this ability.
e
erictgrubaugh
04/03/2020, 6:00 PM
Workflows are just a UI on top of SuiteScript; Workflows and Scripts respond to identical triggers. If something does not trigger a Workflow, it will not trigger a Script (assuming all other conditions are the same)
m
Menno Janssen
04/03/2020, 6:00 PM
Thanks, i will try to figure out another solution then.
Menno Janssen
04/03/2020, 6:21 PM
I have just tested it anyhow and found that UserEvent BeforeSubmit will run with invoices generated from the billing operation but a workflow with a set fieldvalue on beforesubmit will not. Lucky me i guess ;)