22.7.4.2 Creating Text Messages

Create text messages by selecting the application and navigating to Shared Components, Globalization, Text Messages.

To create a text message:

  1. Navigate to the Text Messages page:
    1. On the Workspace home page, click the App Builder icon.
    2. Select an application.
    3. Click Shared Components.
    4. Under Globalization, click Text Messages.
  2. On the Translate Messages page, click Create Text Message.
  3. On Create/Edit Text Message:
    1. Name - Enter a unique name for the message you are creating in the base language (for example, MY_MESSAGE).
    2. Language - Select the language for which the message will be used.
    3. Used in JavaScript - Enable this flag if the message is used in APEX.LANG.* API calls in JavaScript code.
    4. Text - Enter the text to be returned when the text message is called.

      Text Messages support named substitution values. Named substitution values must be unique within the message. Named substitution values can contain any characters except whitespace and "=". For example:

      ACCOUNT_MSG Hello %name, your balance is %balance.

      Text messages can contain either named or positional substitution values (for example, %name, %amount, or %0,%1), ensure that your defined message also contains the same named and number of positional substitution values.

      For example, you could define the message GREETING_MSG in English as:

      Good morning %name

      Or, you could define the message GREETING_MSG in German as:

      Guten Tag %name

    5. Comment - Enter any developer comments or notes here. These comments only display within App Builder and never display when running the application.
  4. Click Create And Create Another or Create Text Message.