ServiceNow Info message populating MULTIPLE times

AnilkumarP
Tera Expert

Hi ,

1. I created Display business rule please find below snap for script 

AnilkumarP_0-1718031838699.png

 

2. Even if i make it business rule In-active still popup message showing 2 times!

AnilkumarP_1-1718031886195.png


3. Created Ui policy please find below

AnilkumarP_2-1718031929972.png


4. Conditions in both  business rule and ui policy

AnilkumarP_3-1718031969624.png

5. Even i used to gs.flushmessages() not working


Kindly please help me !

2 REPLIES 2

Robbie
Kilo Patron
Kilo Patron

Hi @AnilkumarP,

 

An info message will be displayed multiple times as a result of a Business Rule being triggered multiple times. (Directly, and often indirectly which is often the case in this scenario)

 

Where have you added the the gs.flushmessages() ? I assume at the top of the discussed Business Rule which initially displays this message.

Can you confirm this info message is not called anywhere else and there are no other Business rules against the same table that either update the same table or contain current.update() in the script?

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

@Robbie 

 

 

I used this method gs.flushmessages at the top of the script as well as bottom of script still 2 times updating 

2. Info message only used one place that is ui policy not used anywhere 

3. Display business rules I have written to get the dynamic instance url link stored in g_scratpad 

4. I have used that variable in ui policy 

5. evng business rules make it In-Active still info message showing 2 times 

 

Kindly please help me on this issue please