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

Derek Behunin
Tera Guru

What are you trying to achieve with your business rule?

Business rules run when records are inserted/updated so You wont see the results of a business rule running on field change until you update the record.

I will update my post, but the business rule is on th company table and aims to update the users' permissions and accesses when the company is updated with a different "Organization" or a different "Relationship"

Kristian Juul A
Kilo Expert

Is the business rule async?
Async doesn't really handle the "changes" condition.

It runs after an update. I tried to make it run before an update, but it doesn't seem to make a difference.