- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 08:04 AM
We have a before update BR on change table, whenever the record has been updated, it will populate info message on the form multiple times.
what could be the cause? any suggestion please.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 08:42 AM
@Saranya2 Add below line at top of business rule script that will remove old messages and new message will appear. in this way there is only one message.
gs.flushMessages()
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 07:39 AM
Hi @Saranya2 ,
1. Have you checked if there is any other Before Insert BR present on this table?
2. Best to also check the history want is changing on the form.
3. Increase the order of your script (something like 1000 or more than that).
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 07:57 AM
@Saranya2 Cant exactly say that what is the root cause because I don't know the exact implementation of other scripts.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 01:07 AM
Hi @jaheerhattiwale,
I found there is another after Insert/update BR we have created recently, when I am deactivated this BR, then the info message has not populated. Is this because of condition we given in BR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 01:31 AM
@Saranya2 Yes might be. One business rule is triggering other. So adjust the condition so that one BR should not trigger other and it should not break the existing logic.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 03:02 AM
Hi @Saranya2 ,
Use high order to your BR.
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**