+ Start a Discussion
pooja biswaspooja biswas 

bypass trigger and validation rule

Hi
I have a lookup field on soime object which in turn updates another object based on some condition.
There is a validation rule which prevents me from doing the same.
I am aware of custom setting type="Hierarchy", but I do not want to do this becase it may affect other users.
is there a way I can perform the same without using custom setting?

Thanks
Pooja
Amit Chaudhary 8Amit Chaudhary 8
You can follow below step
1) Create one check box on user byPassValidation
2) Check that checkbox for your user
3) Modify your Trigger and Validation saying that same should execute only if byPassValidation= false.

You can check below post for custom setting
1) https://www.linkedin.com/pulse/20140824140147-19516399-how-to-disable-enable-all-validation-rules-for-data-loading-in-salesforce


Let us know if this will help you