Info message raised by business rule displayed twice in Vancouver

Hunter10
Tera Contributor

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?

11 REPLIES 11

Musab Rasheed
Tera Sage
Tera Sage

Looks like BR is running twice, can you change message to something else and see if that works ?

Please hit like and mark my response as correct if that helps
Regards,
Musab

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.

Hunter10_2-1701188514575.png

I also used Add message(not gs.addInfoMessage in Advance script) for testing, but still  same result.

Hunter10_3-1701188708508.png

 

 

Added another write log code line before display message. 

 

HunterYou_1-1701229596956.png

2 messages displayed, but just 1 log.

HunterYou_2-1701229813936.png HunterYou_3-1701229878588.png

 

 

 

Create a HI ticket if you have a HI ticket.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Chris139
Tera Expert

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);

 

Chris139_0-1707322436790.png