Scoped GlideSystem - getMessage(String id, Object args)

Retrieves a message from UI messages.

Table 1. Parameters
Name Type Description
id String The ID of the message.
args Object (Optional) a list of strings or other values defined by java.text.MessageFormat, which allows you to produce language-neutral messages for display to users.
Table 2. Returns
Type Description
String The UI message.
var my_message = '${gs.getMessage("This is a message.")}'; 
alert(my_message);

Output: