Cloud Kicks wants to make sure that users without the Marketing role are unable to update the Contact Retail Opt In picklist field to Yes. What validation rule would an app builder use to prevent other users from making this update?
A.
AND( $UserRole.Name != 'Marketing', Retail_Opt_In__c = ג€Yesג€ )
B.
AND( $UserRole.Name = 'Marketing', Retail_Opt_In__c = ג€Yesג€ )
C.
AND( $UserRole.Name = 'Marketing', ISPICKVAL(Retail_Opt_In__c = ג€Yesג€ ) )
I saw this question on screenshot of real exam and it was AND( $UserRole.Name != 'Sales WW', ISCHANGED(Validation_Yes_Admin__c), ISPICKVAL(Validation_Yes_Admin__c, "Yes")) with "!=" which means "not equal to" operator, like "<>". I have tested and it works. Also this variant works as well AND( $UserRole.Name != 'Sales WW', ISPICKVAL(Validation_Yes_Admin__c, "Yes"))
There is no correct answer but my suspicion is that C was supposed to be correct and is missing the ! before the = sign.
AND( $UserRole.Name != 'Marketing', ISPICKVAL(Retail_Opt_In__c = "Yes" ) )
This way the validation fires when a user with a role that is NOT (!) Marketing chooses the picklist value of "Yes" for "retail opt in".
All answers are wrong. Wrong functions and operations.
A)Picklist field need to use function ISPICKVAL or TEXT
B)Picklist field need to use function ISPICKVAL or TEXT and the role need to be !=
C)ISPICKVAL not use = need to be "," and the role need to be !=
D)ISPICKVAL not use = need to be "," and the role need to be !=
The correct answer is D.
Formula is displayed wrong though, it should be AND( $UserRole.Name = 'Marketing', ISCHANGED(Retail_Opt_In__c), ISPICKVAL(Retail_Opt_In__c,"Yes" ) )
A & B are out anyway because you need to use ISPICKVAL, C is out because its uses = which will throw an error.
I think its D, once someone changes it to yes, if a marketing user tries to change something else the error will apear if you dont check the change in field
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
igorshpak
Highly Voted 1 year, 3 months agodocxdmd
Most Recent 9 months, 3 weeks agot_samuel
10 months, 2 weeks agorymcbain
1 year, 7 months agosf2022
1 year, 9 months agoigorshpak
1 year, 3 months agoShanthanagaraj
2 years, 2 months agoarturonf
2 years, 7 months agosivsiv
2 years, 8 months ago