inmorphis-consu
Kilo Explorer

Adding a header message to ServiceNow to give notification about platform updates, news or any other info that your customer/end-users should be aware of.

Well, this is implemented on HI.Service-now.com. Lets have a look into it and implement it on our development servers.

Basic idea is to use Global UI Script and do some adjustments in it to get this result.

Create a new UI Script.

UI Script: Show Header Information

Global: true
Active: true
Script:

  1. addLoadEvent(function(){
  2. try{
  3. if(g_user.hasRoles()){
  4. //Knowledge Message
  5. var knowledgeMessage = "<a target='gsft_main' href='$knowledge.do?'id='knowledgeMessageText' style='margin-right: 20px; font-size: 100%; color: #000;text-decoration: underline;'>
  6. <span style='margin-right:1%;'><i class='icon-alert'></i></span>
  7. <span>Recent ServiceNow Updates</span></a>"; //);
  8. $('textsearch').insert({before:knowledgeMessage});
  9. }
  10. }catch(e){}
  11. });

This is a simple example, but you can change this to show any type of information or link.

To read more such interesting posts, click here