Comments on: Display Messages With UI Notifications https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/ ServiceNow Consulting Scripting Administration Development Wed, 06 Mar 2024 19:31:00 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jim Pisello https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9615 Tue, 28 Mar 2017 14:15:31 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9615 In reply to Michael E..

Hi Michael,

It appears that ServiceNow provides a new g_notification object, GlideNotificationV3. According to the documentation it only works with ListV3.

]]>
By: Michael E. https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9614 Tue, 28 Mar 2017 13:44:45 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9614 Did anyone get this to work with UI16 ?

]]>
By: Wes Farmer https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9613 Thu, 26 Jan 2017 16:49:56 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9613 Is there a way to make these message pop-up and display for all users that are currently logged into SN?

]]>
By: Jeff Schodde https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9612 Fri, 03 Jun 2016 03:45:31 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9612 I hope someone comes up with an easier way to do this. It seems like a lot of code for such a simple feature. Anyone?

]]>
By: Harel https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9611 Sun, 17 Apr 2016 16:00:45 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9611 Joining Nadya and Russell on that – is it possible to show such a notification to all connected users, and not only to the one who made the changes?

]]>
By: Richard Selby https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9610 Tue, 19 Jan 2016 10:26:21 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9610 In reply to Nick.

It works fine in a Script Include for me (on Fuji). You should reload the entire screen (not just the form) after adding the UI Script.

]]>
By: Russell Miller https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9609 Mon, 01 Jun 2015 00:21:52 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9609 In reply to Nadya.

I have to add my voice to that one, it’s not clear how to control who will get the notification… other than that this is really useful.

]]>
By: Nadya https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9608 Tue, 19 May 2015 03:32:34 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9608 Hi!

Nice article.
I have tried this, but the notification only showed up for the Updater. I need to make the notification shown for the other agents (or a specific role).
Did I miss something?

]]>
By: Shurik https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9607 Fri, 18 Apr 2014 13:46:37 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9607 Does someone try to use above UI Script and Business Rule? I created exactly the same items but had no luck with pop-up message displaying

]]>
By: Nick https://servicenowguru.com/ui-scripts-system-ui/display-messages-ui-notification/#comment-9606 Mon, 14 Apr 2014 02:23:28 +0000 https://servicenowguru.wpengine.com/?p=5143#comment-9606 In reply to Nick.

Ok so for anyone that needs an idea for this here is what I did-

Global UI Script that runs on interval calling a script include Ajax, which in turn queries the v_user_session table, field ‘last_transaction’. Compare that to the current time, and then against whatever your system timeout property is. Ours is the default 30 minutes. If the difference is almost thirty minutes return the username from the user session table, and then invoke the n= new UINotification(answer + ‘ your session is about to expire, save your work ! ‘ ) from the UI Script. Only way I could figure to “schedule” this. Couldn’t get this to work in script action, script include , scheduled job. Just on the client (obviously) and business rules. If anyone knows why this only works in BRs that would be great to know!

]]>