Hi newbie here. Will deleting a record using Sched...
# suitescript
k
Hi newbie here. Will deleting a record using Scheduled Script trigger a User Event script, specifically the afterSubmit function?
s
Yes, scheduled scripts will trigger user events. Workflows and other UserEvents will not chain each other.
k
Sorry, just to be sure, so a record.delete in a scheduled script should run the afterSubmit of a userEvent script right?
@Sandii
b
it should be a lot easier to just try this yourself
k
@battk thanks for the suggetion. Yup i tried it, and it didn't work. So I'm trying to know from more experienced people if it's like that or if i'm just doing something wrong.
b
you are doing something wrong
most likely cause is the deployment of the user event is not properly deployed
usually that means a valid status, audience, and execution context
👍 1
n
I would check Execution context
k
Thanks for confirming it! Big help, that'll cross one out of my possible problems.