ServiceNow Info message populating MULTIPLE times
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 08:11 AM
Hi ,
1. I created Display business rule please find below snap for script
2. Even if i make it business rule In-active still popup message showing 2 times!
3. Created Ui policy please find below
4. Conditions in both business rule and ui policy
5. Even i used to gs.flushmessages() not working
Kindly please help me !
- Labels:
-
Service Level Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 09:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 10:10 AM
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