After Insert Business Rule not firing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2018 02:11 PM
I am trying to get an After Insert business rule to fire on the "sys_user_has_role" table.
I have bigger plans in the future, but for the time being, I just want to see a log statement when a user gets a role. The problem is the BR isn't firing when the user gets the role from being added to a group. However, when I add a role to the user directly, it works fine. See below for script:
(function executeRule(current, previous /*null when async*/) {
gs.warn("BR Triggered");
})(current, previous);
As I said before, if i add the role to the user directly, it works fine. If, however, I add the user to a group, and they get the role from being added to the group, it doesn't fire.
Help?
@ctomasi any ideas?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 01:02 PM
ctomasi any thoughts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 03:06 PM
tagging doesnt work in new community
Please mark this response as correct or helpful if it assisted you with your question.