- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2024 11:48 AM - edited ‎11-05-2024 11:50 AM
We had a situation where we tested a Business Rule that runs Before Insert on the sys_user table.
The goal was to target new account creations and adjust them to Web service access only
However shortly after creation it affected a large amount of already existing user records.
Why would this happen? I believed that a Before Insert rule would only run/affect a new record being created?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 10:28 AM
As some of the other commenters have posted, something else is causing the issue; you are correct that the Insert BR will only fire on new record creation. I'd look at other BRs and scheduled jobs you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 06:08 AM
Set Advanced to 'false' if you're not using a script there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 06:27 AM
@Chris Cardenas ,
Are you sure that the business rule you are showing was responsible for the changed records?
If the configuration is 'before insert' it won't do anything on existing records as you expect.
Maybe it was changed along the way? If you look at the version of the business rule, was it active at any point with 'update' also checked?
Best regards,
Joni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 06:31 AM
before insert will run only for fresh insert and not for existing record.
Did you check any other BR or script update it for existing records?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 07:11 PM
Thank you for marking my response as helpful.
As per new community feature you can mark multiple response as correct.
If my response helped please mark it correct so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 10:28 AM
As some of the other commenters have posted, something else is causing the issue; you are correct that the Insert BR will only fire on new record creation. I'd look at other BRs and scheduled jobs you have.