Triggering a system message to show on a pop-up in UI Action

labandar
Tera Contributor

Hello ServiceNow Devs,
I'm trying to get a message into Workspace Client script of UI Action as in the screen shot below to show in a pop-up in SOW but I'm getting the key instead if the message when I change the language, if I try to trigger again I'm Getting the message in the respective language. Any idea how to over come this?

Here is the code I've used.

labandar_3-1735913876306.png

 


Here are the screen shots of what's happening:
Tried it in Portuguese language, initially I'm getting it in English and then if I close the dialogue button and click again then it is showing in Portuguese

first time click

labandar_1-1735913702371.png


Second Time click

 

labandar_2-1735913799698.png

 



6 REPLIES 6

Runjay Patel
Giga Sage

Hi @labandar .

 

Try clearing the cache of your instance and then give a try. it should work. If you are changing the language then to see the impact you need to refresh the page.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

@Runjay Patel I tried clearing the cache, refreshed the page, still the same.

Ankur Bawiskar
Tera Patron
Tera Patron

@labandar 

Is this happening always?

Is this happening for all users?

Did you try with an actual user whose language is Portuguese rather than impersonating?

Are you sure the message is configured correctly?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar Yes, it's happening always on the SOW when i try to translate for all users and also I tried with the users with different language as well. And it is configured correctly you can see the script above and here's the configured message for your reference.

labandar_0-1736091041997.png