I need the rule to state that only the two user id's indicated have the ability to close a case if the case sub-reason is either option 1 or option 2. I created it, and it blocks the users from closing cases with this information (including myself), however, the two people with the user ids that are in the formula are also not able to close the case (so essentially no one is able to close the cases).
Here is what I have so far:
AND(
ISPICKVAL(Status,"Closed"),
OR(
ISPICKVAL( Case_Sub_Reason__c ,"Option 1"),
ISPICKVAL( Case_Sub_Reason__c ,"Option2")),
OR(
$User.Id <> "00540000000leyp",
$User.Id <>"00540000001RA2M"),
)
4 réponses
Here you go (I was missing a paren)
I would double-check the spelling and punctuation of the Sub Reason values in your VR (they need to match exactly)AND(
$
User.Id<> "00540000000leyp",
$
User.Id<> "00540000001RA2M"
ISPICKVAL(Status,"Closed"),
OR(
ISPICKVAL(Case_Sub_Reason__c ,"Option 1"),
ISPICKVAL(Case_Sub_Reason__c ,"Option 2")))