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일 오후 1: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