exam questions

Exam Certified Platform App Builder All Questions

View all questions & answers for the Certified Platform App Builder exam

Exam Certified Platform App Builder topic 1 question 429 discussion

Actual exam question from Salesforce's Certified Platform App Builder
Question #: 429
Topic #: 1
[All Certified Platform App Builder Questions]

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ג€ ) )
  • D. AND( $UserRole.Name = 'Marketing', ISCHANGED(Retail_Opt_In__c), ISPICKVAL(Retail_Opt_In__c = ג€Yesג€ ) )
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
igorshpak
Highly Voted 1 year, 3 months ago
Selected Answer: D
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"))
upvoted 9 times
...
docxdmd
Most Recent 9 months, 3 weeks ago
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".
upvoted 3 times
...
t_samuel
10 months, 2 weeks ago
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 !=
upvoted 2 times
...
rymcbain
1 year, 7 months ago
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.
upvoted 3 times
...
sf2022
1 year, 9 months ago
Selected Answer: A
validation rule mean to be false case to show error Ans is A. AND( $UserRole.Name != 'Marketing', Retail_Opt_In__c = ג€Yesג€ )
upvoted 1 times
igorshpak
1 year, 3 months ago
Doesn't work! Tested!
upvoted 3 times
...
...
Shanthanagaraj
2 years, 2 months ago
Selected Answer: A
it says without the marketing role and while validating it should be true , to throw an error
upvoted 3 times
...
arturonf
2 years, 7 months ago
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
upvoted 3 times
...
sivsiv
2 years, 8 months ago
Make sure to pay attention to ISPICKVAL syntax
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...