You need to sign in to do that
Don't have an account?
Malli G
customsettings
when we want disable all the validationrules for a specific user on all the sobjects how we can achieve this give me some examples
and how to deactivate the triggers for a specific user
and how to deactivate the triggers for a specific user
Here are the working examples and please have fun with them.
User information
- Name: Test User (Id: 0050000001AabCD)
- Profile: TestProfile (Profile Id: 00e000000098XYZ)
Example 1 of validation rule (UserId as the criteria) Example 1 of trigger (UserId as the criteria)Example 2 of validation rule (Profile as the criteria) Example 2 of trigger (Profile as the criteria)
Then in all your Validations Rule, add the condition :
And in your Triggers add this line on top : CurrentUser is a class that you need to create, and will look like :