Post

2 followers Follow
0
Avatar

How do I create evaluation criteria that compare previous values to the changed ones?

I can't find any documentation to help me access a previous value as an evaluation criteria. I am trying to create a workflow for a project that saves the project as a baseline when the project's state value is changed from "Draft" to "Active". I don't want it to run when changing from any other state to active. When I try to use the GetPreviousValue() which isn't showing up in the formula editor, I get an error saying "Invalid function GetPreviousValue() usage in current context"

Current attempt looks like this:
(GetPreviousValue($State) = 'Draft') && ($State = 'Active')

Jon Beckman Answered

Official comment

Avatar

Hi Jon,

GetPreviousValue() is available in when you change the run time to created/edited. Please let me know if that solves for the problem.

Regards,
Tamir

Tamir Avital
Comment actions Permalink

Please sign in to leave a comment.

2 comments

0
Avatar

That did the trick, I was on "When a record is created, or when a record is edited and did not previously meet the rule criteria" and switching it caused this to work immediately. Thank you!

Jon Beckman 0 votes
Comment actions Permalink