Business Rule not triggered when the value of a list field "Changes"

Sirmyself
Giga Contributor

(Version is still Kingston, will update after upgrade)

We have a business rule on the "core_company" table with the following condition :

find_real_file.png

 

Where the "Relationship" field is a list field and "Organization" is a choice among three values. When the content of the list changes, I would expect that business rule to trigger, but it does not. The only way I could successfully trigger the business rule was by changing the "Organization" value to a value different from "--None--", making the "Relationship" condition basically useless.

This business rule aims to update the company's users' accesses when that company is updated with one of those fields changed. We also need to make sure that the "Organization" value is not "--None--" before we update the users' accesses.

The business rule should run "After" an "Update" of the company. I already tried with "Before" but it doesn't seem to make a difference.

Is there a place in the documentation saying that the lists don't work in business rules conditions? Or maybe is it not working because of something else?

1 ACCEPTED SOLUTION

Sirmyself
Giga Contributor

This is a bit weird, but I changed the condition to have an additional "Or" Clause, so the condition would look like this : 

find_real_file.png

And it started working. So just to try, I changed the condition back to what it was before and it is working as well. Needless to say I am kind of confused. Maybe there was an error in the way the business rule was created and changing the condition fixed it... That or maybe the value of "Organization" for that company was changed to "--None--" and eventually changed back to some value and I didn't see it.

View solution in original post

6 REPLIES 6

johnnyd54
Giga Expert

When you change the Relationship field and the business rule isn't triggering, does the record already have an Organization value filled in? If this is the case it should work. Could you post the code, maybe there's an error.

Sirmyself
Giga Contributor

This is a bit weird, but I changed the condition to have an additional "Or" Clause, so the condition would look like this : 

find_real_file.png

And it started working. So just to try, I changed the condition back to what it was before and it is working as well. Needless to say I am kind of confused. Maybe there was an error in the way the business rule was created and changing the condition fixed it... That or maybe the value of "Organization" for that company was changed to "--None--" and eventually changed back to some value and I didn't see it.