- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 05:29 PM
In Paris version, I found that "Messages" field was newly created in UI Action.
How do I use this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 10:05 PM
Hi there,
It's similar like the Messages field that's on Client Script and Catalog Client Script. Within there, you would add the UI Messages you are using.
So if in your UI Message code, client side you are using getMessage, the message mentioned there, should also be in the Messages field. Previously people would script a callback on that getMessage, though with that Messages field a Callback is unnessary.
If you would do no Callback or would not use the Message field, first time the UI Message shows, would show the Key of the UI Message and not the value, the second time the UI Message shows it would show the value.
So there for, the Messages field! Nice addition in Paris, unfortunately the Messages field is still missing on UI Policies.
Also see this article about the MEssages field usage, in this case on Catalog Client Scripts which I wrote a while back:
https://community.servicenow.com/community?id=community_article&sys_id=8d43d2bfdb4d8c50d58ea345ca961...
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 09:54 PM
Hello Yu Kikuchi,
It is a text string & available to client script. It will show the message using getMessage('message');
Kindly mark my answer correct & helpful; if it's useful to you & if it solves your query.
Thanks & Regards,
Pooja Devkar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 10:05 PM
Hi there,
It's similar like the Messages field that's on Client Script and Catalog Client Script. Within there, you would add the UI Messages you are using.
So if in your UI Message code, client side you are using getMessage, the message mentioned there, should also be in the Messages field. Previously people would script a callback on that getMessage, though with that Messages field a Callback is unnessary.
If you would do no Callback or would not use the Message field, first time the UI Message shows, would show the Key of the UI Message and not the value, the second time the UI Message shows it would show the value.
So there for, the Messages field! Nice addition in Paris, unfortunately the Messages field is still missing on UI Policies.
Also see this article about the MEssages field usage, in this case on Catalog Client Scripts which I wrote a while back:
https://community.servicenow.com/community?id=community_article&sys_id=8d43d2bfdb4d8c50d58ea345ca961...
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2020 12:06 AM
Thank you for all.
> If you would do no Callback or would not use the Message field, first time the UI Message shows, would show the Key of the UI Message and not the value, the second time the UI Message shows it would show the value.
I've never faced such a situation, but I understood it's important to set the value to "Messages" filed when I use getMessage().