We have a script, beforeSubmit that runs off of a ...
# suitescript
s
We have a script, beforeSubmit that runs off of a hold checkbox. However, we also have a workflow, beforeSubmit, that sets the hold values. Both have to be beforeSubmit. How would I have the workflow run before the script?
s
Say a prayer and hope they work 🙏 ... otherwise sounds liek logic should be consolidated and moved into same script/workflow
😂 1
👍 1
b
the unfavorable alternative answer is to use N/workflow
mixing workflows and scripts generally is a failing answer because now you you need someone who knows both to maintain it
👍🏼 1
s
Turns out I was also wrong and it is in an afterSubmit. So when I created a workflow action, it failed because "record was saved" lol. Poor design on the contractor company who wrote this