You need to sign in to do that
Don't have an account?
ZombiePrawn
bypassing validation rules
hi,
an example scenario is, i have a validation rule for object#1. now i had a trigger for object#2 that also updates the object#1
Is there a way to skip the validation rules of object#1(by not relying in modifying triggers) if the update is caused by the object#2?
thanks in advance,
But i can think of a workaround:
1. Create a hidden checkbox field in the Object 1 (something called bypass).
2. When the trigger in object 2 is run, also set the bypass checbox field.
3. Modify the validation rule to run only if the bypass field is true.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
All Answers
But i can think of a workaround:
1. Create a hidden checkbox field in the Object 1 (something called bypass).
2. When the trigger in object 2 is run, also set the bypass checbox field.
3. Modify the validation rule to run only if the bypass field is true.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.