Skip to main content
Question

Referring to the old value of a field in a business rule expression

  • February 8, 2022
  • 1 reply
  • 143 views

Forum|alt.badge.img+9
  • Sidekick (Partner)
  • 59 replies

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?

 

This topic has been closed for comments

1 reply

Forum|alt.badge.img+9
  • Hero (Former Employee)
  • 49 replies
  • February 8, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings