- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 10:56 PM
I'm trying to update the Create Normal Change UI action, so that it auto-fills some fields in the new change with text I've saved as messages. However, whenever I add getmessage() to the script, the UI action fails. I see other UI action scripts that use getmessage(), so I don't understand what the problem is.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:58 PM
the syntax is wrong.
if your UI action is server side then use this syntax
gs.getMessage('your key here');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:58 PM
the syntax is wrong.
if your UI action is server side then use this syntax
gs.getMessage('your key here');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2025 10:04 PM
Thank you that fixed it