Hello, I have a record that is being properly crea...
# suitescript
p
Hello, I have a record that is being properly created through a script. the issue is I can not get it to trigger going to the next step in the approval workflow without another edit and save on the record. the workflow is setup to use the script context. is there something else I need to do? Thank you.
b
what type of script?
p
user event script
b
user event scripts dont trigger other user events or workflows
p
got it. how could I trigger the script running aftersubmit? I need the user to complete an action
b
that said, after submit scripts arent usually for users input
p
I need to create the transaction after the user says its ready. I could move to a map/reduce
battk, I do need users input. after I generate the transaction I want it to go through the approval workflow but it is not triggering the aftersubmit for the workflow to get it to go for approval
b
you can use N/workflow to trigger workflows programatically
p
got it
what if the workflow already initiates on the record and gets to the first step? is there a way to trigger the after submit action?
b
workflow.trigger has options if you want to be more specific than simply triggering the workflow
p
I can not get it to work. the workflow shows it is in the first step of the workflow. Is there a way I can trigger it to go to the next step of the workflow?
b
probably will depend on the conditions you have setup on the workflow
p
ok. I know the issue. is it possible to call a scheduled script from a user event script?