+ Start a Discussion
VempallyVempally 

Bypass validations for a particular user...

Hi Everyone,

If we have 10 users with permission to use Data Loader... I want to bypass validatios for a particular user...
How to achieve this...?
Best Answer chosen by Vempally
Amit Chaudhary 8Amit Chaudhary 8

Option 1:-
Simply follow below step
1) Create one check on user "IS Data Migration User" is_Data_Migration_User__c
2) Make that check box true for Data Loader user as true
3) Update your valiation rule like below
AND(

 $User.is_Data_Migration_User__c = false,
Then You validation Rule
)
Please let us know if this will help you

Option 2 :-
Create new profile for those 10 user and add a check of profile like below
AND(

You code,

$Profile.Name !='System Administrator' 
)
Please ley us know if this will help you

Thanks
Amit Chaudhary

 

All Answers

Amit Chaudhary 8Amit Chaudhary 8

Option 1:-
Simply follow below step
1) Create one check on user "IS Data Migration User" is_Data_Migration_User__c
2) Make that check box true for Data Loader user as true
3) Update your valiation rule like below
AND(

 $User.is_Data_Migration_User__c = false,
Then You validation Rule
)
Please let us know if this will help you

Option 2 :-
Create new profile for those 10 user and add a check of profile like below
AND(

You code,

$Profile.Name !='System Administrator' 
)
Please ley us know if this will help you

Thanks
Amit Chaudhary

 
This was selected as the best answer
JyothsnaJyothsna (Salesforce Developers) 
Hi,
By using custom permissions and custom setting you can bypass the validation rule for a particular user.

Please refer the below links for more help.
http://www.verticalcoder.com/2012/07/26/custom-settings/
http://www.simplysfdc.com/2014/10/salesforce-custom-permission-for.html


Hope this helps you!
Best Regards,
Jyothsna