Skip to main content
pooja biswas が「#Apex」で質問
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
1 件の回答
  1. 2017年1月25日 13:54
    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
0/9000