Please advise, I'm writing custom logic like: 'User cannot close an Opp if it has no OppContactRoles'
Does anyone know if there is an action in Process Builder to stop a record from updating? Preferably with an alert similar to apex .adderror() method.
I cannot use a custom Validation rule on my Opp because the logic depends on OppContactRoles (which allow no triggers and no standard Rollup to Opp) so I plan to rollup(count) oppContactRoles using a PB. Problem is- validation rules run before a PB. Also I like to keep logic in one place, so saving writing a 'Before' trigger as a last resort. Thanks!
Invocable
Apex and throw an.addError()
based on the conditions you are looking for