- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2019 06:04 AM
(Version is still Kingston, will update after upgrade)
We have a business rule on the "core_company" table with the following condition :
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2019 06:44 AM
This is a bit weird, but I changed the condition to have an additional "Or" Clause, so the condition would look like this :
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2019 06:37 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2019 06:44 AM
This is a bit weird, but I changed the condition to have an additional "Or" Clause, so the condition would look like this :
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.