function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
navya m 23navya m 23 

I want to bypass validation rule for specific profile and user but its not working

AND (OR(NOT($Profile.Name = 'Integration User'),NOT( $User.Username ='xyz')) , Owner:Queue.DeveloperName ='abc')
is the validation rule condition .Its working when only profile check is added but not when both profile and user check is done in the condition.Will logged in user based check work in validation rules??
FARSANA PSFARSANA PS
hai Navya,

Try this,

AND (NOT(OR($Profile.Name = 'Integration User',$User.Username ='xyz')) , Owner:Queue.DeveloperName ='abc')

hope this helps!!