Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Business rule condition - Variable value changes

Rocky5
Kilo Sage

Hey Folks,

I am trying to execute a after update type business rule to copy "variable" value to "comments" field.

But the condition should be like, "when variable value changes" copy the value to additional comments.

In a business rule filter conditions "changes" operator is not available. 

find_real_file.png

How can I achieve this?

Thanks,

Rocky.

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

can you try condition in script like

current.variables.XXXXX.changes() 

find_real_file.png

View solution in original post

3 REPLIES 3

Mike Patel
Tera Sage

can you try condition in script like

current.variables.XXXXX.changes() 

find_real_file.png

Hi Mike - I know this is an old post and I'm hoping you're still around to assist. I used this solution (yay!) to successfully trigger an event based on the business rule that matches a condition like this. However, I'm finding that if I change the value of the variable from a Flow, the business rule does not run. It only seems to run if manually changed by a user. Do you know if there is a limitation with how the variable is changed that would prevent the business rule from meeting the condition?

sachin_namjoshi
Mega Patron

you need to use business rule condition like below

 

current.variables.test == ""

 

 

Regards,

Sachin