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
Eric BollerEric Boller 

Workflow and Formula Referencing Previous Value

I have the below formula. I'm trying to create a workflow that triggers every time a lead's Pardot score increases by 25+. However, I also get the below error.

PRIORVALUE( pi__score__c )< pi__score__c - 25

Error: Function PRIORVALUE may not be used in this type of formula
Best Answer chosen by Eric Boller
Grazitti TeamGrazitti Team
Hi Eric,

You are getting the error because PRIORVALUE function works onlyt  for  Workflow rules if the evaluation criteria is set to "Evaluate the rule when a record is: created, and every time it’s edited"

For other two criterias it's logically wrong.

Mark it as Best Answer , if it helps you

Regards,
Grazitti Team
www.grazitti.com

All Answers

Grazitti TeamGrazitti Team
Hi Eric,

You are getting the error because PRIORVALUE function works onlyt  for  Workflow rules if the evaluation criteria is set to "Evaluate the rule when a record is: created, and every time it’s edited"

For other two criterias it's logically wrong.

Mark it as Best Answer , if it helps you

Regards,
Grazitti Team
www.grazitti.com

This was selected as the best answer
Eric BollerEric Boller
Thank you!