Display a pop up message on Servicenow successful login

vivek72
Tera Guru

Hi,

I got below requirement, please let me know if anyone has implemented it before:

1. Display a message to all users in their local language post login to Servicenow Instance .

2. This message should only be displayed once per session and not everytime.

I have gone through below article as well but couldn't get it properly how it's working and how should I convert pop up message in logged in users local language and how can we set time for a particular session after which message needs to be displayed again.

https://community.servicenow.com/community?id=community_article&sys_id=ca3f3c47db7edc504aa5d9d968961929

 

Thanks,

Vivek

1 ACCEPTED SOLUTION

Hello Vivek,

 

1. How and where to set the frequency parameter so that dialog box can be again displayed.

--> The current implementation shows the dialog on the basis of user's session. If you want to add an extra condition to set the frequency then you can create  a system property storing the value (frequency). Then you need to update the SI : sessionUtil() with extra condition of checking the frequency value.

2.I have added 2 entries in sys_ui_message table for same key value but different for message and language field. Now how to use this in code which can display the message in logged in user's language. Also I have changed the language for 2 users in user table.

--> You need to update the message in the UI Page and Client script as mentioned in the below link:

https://developer.servicenow.com/connect.do#!/event/knowledge19/CCW0689/knowledge19_CCW0689_section_3_translate_a_ui_page 

 

Please mark correct if this helps.

 

Thanks,

Ajay

View solution in original post

5 REPLIES 5

Another thing Ajay, this solution doesn't work on portal, what needs to be done to make it work on service portal as well.

When I selected UI type as 'All' for UI Script, this stopped working on Native UI as well.

We need this solution to work on both Native UI and Service Portal.

Thanks,

Vivek