- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 06:57 AM - edited 08-17-2024 07:01 AM
Im not sure what i am doing wrong haha.
when a record is created, and there is a after business rule that sets active to false, it does not work for some reason:
if i set the business rule to before it works.
here is a small video:
https://youtu.be/spq_8dQsuUA
if the rule was working when is set to after, would i get the updated record or would i have to refresh the page to see the updated record?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 01:09 PM
Yes thats the expected behavior, because you should not do this after, you should do this before.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 07:12 AM
Hi there,
What would be your reason to do this after instead of before? If its an update on the current record (which it looks like reading your question), then doing this after does not immediately make sense.
Why is the after not working? Because there is no current.update(). Which obviously is a bad practice to do in business rule 😀.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 11:21 AM
Hi Mark,
thanks for replying to my question.
Im just seeing if there is something wrong with the instance, doing a simple test is all.
the after is not working because it should be setting active to false after the record is inserted.
I am using the business rules 'actions' so i dont need to use current.update().
the business rule 'action' worked for where i used when=before, so i know i dont need to use current.update() i think.
isnt the expected behavior to set active to false?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 12:16 PM
As I mentioned, no thats not the behavior. Also, why do you want to do an after business rule, doesn't make sense. Please explain.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 12:39 PM
What is the expected behavior? to not work?
I read what you send, it just said it does not work for setting values when using after.....
i wonder why.
the reason why i am doing this is because i though there was an issue with our system, i was just testing