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',ISCHANGED(Retail_Opt_In__c),
ISPICKVAL(Retail_0pt_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', Retail_Opt_In__c= "Yes" )
A. AND( $UserRole.Name != 'Marketing',ISCHANGED(Retail_Opt_In__c),
ISPICKVAL(Retail_0pt_In_c,"Yes") )
Explanation:
The validation rule should check if the user role is not Marketing, and if the Retail Opt In
field has been changed to Yes. The ISCHANGED function returns true if the field value has
been changed, and the ISPICKVAL function returns true if the field value matches a
specified picklist value.