Info message raised by business rule displayed twice in Vancouver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 07:55 AM - edited 11-28-2023 08:05 AM
I use gs.addInfoMessage in Business Rules to display information before update. I found that the message is displayed twice when I edit record in the list, but it is normally displayed once after saving the record in the form. It is normally displayed once in Tokyo after edit record in the list. Could someone give a hint how to let it just displayed once in list edit?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:12 AM
Looks like BR is running twice, can you change message to something else and see if that works ?
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:27 AM
To prevent interference from other items, I created a new application and only created this Business Rule (BR), but the message still displays twice in list edit.
I also used Add message(not gs.addInfoMessage in Advance script) for testing, but still same result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 07:52 PM
Added another write log code line before display message.
2 messages displayed, but just 1 log.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 03:03 AM
Create a HI ticket if you have a HI ticket.
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:14 AM
I am also experiencing this in Vancouver. I know it is a UI issue and the business rule is not actually being run 2x. I created a business rule that would display a random number each time it is triggered, in list view the same number is displayed twice --- therefore I know the rule isn't firing 2x, just UI issue.
This is SN bug thats should be resolved.
(function executeRule(current, previous /*null when async*/ ) {
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
gs.addInfoMessage(getRandomInt(10000000));
})(current, previous);