- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 08:23 AM
Hey everyone,
I'm having a tough time getting my business rule to work properly. I am trying to keep track of the number of users in a table so I have a business rule that uses GlideAggregate to count the number of records in the table. In the when to run section, I have it set to run after a user has either been inserted or deleted from the table. I then created an event that notifies me what the current number of people are in the table everytime someone is added or deleted.
The business rule runs fine when someone is inserted into the table but does not work at all when someone is deleted from the table.
Does anyone have an idea why that is?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 02:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 08:26 AM
Can you change when to before instead of after and try ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 09:07 AM
Setting it to before didn't work but it also doesn't fit what I need either. I need to know the current number after an entry in the table has been added or deleted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 11:43 AM
Hey Devlin,
Change your BR order and try again.
Refer this -
Execution Order of Scripts and Engines - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 02:25 PM