I am trying to create a validation rule for Oppty object that:
- Prevents users from going back in Oppty stages unless user has certain types of profile
- Still allows users to close lost or won deals
Below is what I tried, and while it prevents users from moving back in stages it also does not allow users to close won/lost deals.
AND(
CASE(
StageName,
"Initial Stage", 1,
"Second Stage", 2,
"Third Stage", 3,
"Closed", 4,
0
)
<
CASE(
PRIORVALUE(StageName),
"Initial Stage", 1,
"Second Stage", 2,
"Third Stage", 3,
"Closed", 4,
0
),
/*Profile Type1*/
$Profile.Id != '000000',
/*Profile Type2*/
$Profile.Id != '000000'
)
Any insight or advice is deeply appreciated. Thank you so much and happy Friday!