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
Sandii
06/06/2022, 7:13 PM
Say a prayer and hope they work 🙏 ... otherwise sounds liek logic should be consolidated and moved into same script/workflow
the unfavorable alternative answer is to use N/workflow
battk
06/06/2022, 7:40 PM
mixing workflows and scripts generally is a failing answer because now you you need someone who knows both to maintain it
👍🏼 1
s
screnshaw
06/06/2022, 8:14 PM
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