I created a aftersubmit event on the Sales Orders....
# suitescript
s
I created a aftersubmit event on the Sales Orders. Things are going well, except when the SO is approved by a Workflow. It doesn't fire the aftersubmit. Do you know any reason why it's happening ?
c
User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script
s
OK. Therefore I need a "trigger". Each and every time the SO is saved I need to execute a script. How can that be done ?
b
most reliable is a map/reduce script that queries or searches for the sales orders you want to process
s
I thought about it but as soon as the order in entered and ready "Pending Fulfillment". We need to do some "action". We can't wait "15 minutes"
b
then you need to make the workflow do whatever action you need
getting a workflow to trigger a user event script will be a failing design
s
I agree, I'm looking for a "trigger" on sales order that gets fired all the time
b
there isnt one
s
😞