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
SASA 

Error: Incorrect number of parameters for function 'PRIORVALUE()'. Expected 1, received 2

Hi,
Need help with below Validation rule
OR(ISPICKVAL(PRIORVALUE(StatusCode, "Activated")),
ISPICKVAL(StatusCode, "Activated"))

Error: Error: Incorrect number of parameters for function 'PRIORVALUE()'. Expected 1, received 2
Regards,
Sony
Raj VakatiRaj Vakati
Use this
 
OR(ISPICKVAL(PRIORVALUE(StatusCode), "Activated"),
ISPICKVAL(StatusCode, "Activated"))