Good evening,
We have one flow that automatically updates the stage of a parent object A to 'Count Completed', whenever all the related children in object B are not excluded/cancelled and reach the stage 'Count Sent'.
To prevent users from manually changing the status on the parent object we set a checkbox 'BypassValidation' to false, and create a validation rule using Not(BypassValidation).
I have been trying to set BypassValidation to true in the flow previously mentioned, having tried both on the Assign Element and the Update element but the validation rule is still triggered, which prevents both the child record that triggered the flow to be updated and to change the status on the parent object.
I am not sure if the issue is trying to update both elements, BypassValidation and the Parent object status, in the same flow, since (if my understanding is correct) the Validation Rules will be evaluated before than the processes.
Could anybody give me a hand on this one???
Many thanks in advance.
Hey sorry for the delay.
Actually it was a simple fix, I followed the instructions detailed here https://jenwlee.com/2021/04/05/bypass-validation-rules-in-a-flow-and-process-too/ the only thing I had to add on the flow was to UPDATE elements,one to update the Time field so the process described in the link is met, then update record.