Skip to main content

Hi Experts,

Somewhat of a trivial question. When writing an expression for business rule based on a field update, how do we refer to the old value of the field?

ex: if the task.user_def1 is updated and I want a validation as following

task.user_def1(new) - task.user_def1(old) > some dynamic value (from a joined view)
then trigger error message

How do we write this?

 

Hi @Miraj  

When you write the BR, you can only consider the task.user_def1(new) and give a value that you expected to be set already when triggering the errror. 
The reason why is that you are giving out an error when updating the task.user_def1(old) field to task.user_def1(new). 

  So when you write the BR, give the task.user_def1(new) equals to the value that you need to validate and set the output parameter : the error message that you need to trigger when the task.user_def1(new) field is being changed. 

Hope this helps :) 

Thanks,
Kalpa