You need to sign in to do that
Don't have an account?
Kate Williams 24
Validation rule to stop certain profile being assigned to field
I need to add a validation rule for if a certain profile is assigned to a Secondary AM field that it won't save. I don't want this profile to be able to be assigned to this field and so need an error message to pop up so people know not to assign certain users.
As per the description you want to show an error, the specific profile is not assigned to the "Secondary AM" field i.e. Secondary_AM__C.
If It is correct then please check the below
If not, please specify your requirements a little more.
Please mark it as Best Answer if the above-given validation was helpful.
Thanks.
Hi, so yes, I don't want an SDR to be able to assigned to the Secondary AM field. I want it to stop the record from being saved and show the error message.
The formula you posted doesn't work - I'm still able to save a user who has the SDR profile.
Thanks.
Let me confirm once,
if the profile is SDR and the value of " Secondary_AM__c" is SDR then it should throw the error.
Is it correct as per your requirement?
if yes then please try the below validation code snippet
Please mark it as Best Answer if the above information was helpful.
Thanks.
I don't have any others related to this issue and it's not letting me attach a screenshot.
I have added into the validation rule formula window exactly as you entered it above
AND($Profile.Name = 'Sales Development Representative',
Secondary_AM__c = 'Sales Development Representative')
Are you basically trying to create a Rule that will block a User from selecting a User with the 'SDR' User.Profile in a custom Lookup(User) field called Secondary AM? Essentially a "Lookup Filter" (but a Validation Rule)
Is that it? or do I have it backwards/sideways/not at all?