function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
petec@i2isyspetec@i2isys 

Prevent Community Users from Opening a Closed Case

Hello, I'm trying to get a validation rule on cases so a Community Profile can't open up a closed case, but every one else in my org can.
I tried this, and while I don't get an error, the community user could still re-open closed case.

AND(NOT(IsClosed),
ISCHANGED(IsClosed),
OR ($Profile.Id = '00e33000000x2uz',$Profile.Id = '00e33000000jxCM'))

I have another valdiation rule that prevents community profiles from change case owner and that rule works just fine.
AND(ISCHANGED(OwnerId), OR ($Profile.Id = '00e33000000x2uz',$Profile.Id = '00e33000000jxCM'))

Can anyone see where I might be going wrong?
Thanks!
Michael.ArrouasMichael.Arrouas
Hi Petec,

You should try with this instead:

AND(
ISCHANGED(Status),
ISPICKVAL(PRIORVALUE(Status), "Closed"),
OR(
$User.ProfileId = "00e33000000x2uz",
$User.ProfileId = "00e33000000jxCM"
)
)