Just discovered a nefarious bug with Workflows tha...
# suiteflow
j
Just discovered a nefarious bug with Workflows that run on Delete on Transaction. I set up a Workflow to run on Delete / Before Record Submit on Sales Order & Estimate. I added one action, Return User Error, also on Delete / Before Record Submit. If I put a CONDITION on that action for “Type = Sales Order” and try to delete a Sales order, the action does NOT fire and the record is deleted! I actually discovered this when trying to get a custom wf action to execute before record submit on delete but only on certain transaction types. Putting in a condition to check transaction type just means that action doesn’t get triggered at all. Super dangerous and buggy as heck!
a
Can you filter the entire workflow to only run on sales orders instead of putting the condition in the action?
j
Unfortunately no, because this workflow does other things too (for multiple transaction types), and we already have so many workflows that I don’t want to create a separate one. To be honest, it’s definitely a defect, there’s no reason why the action should not execute.
a
Yeah I agree. Especially on before submit. That makes sense we're too cluttered with workflows as well