Global variables are referenced for creating a message template. You can consider global variables as parameter variables. Global variables can reduce your workload by preventing you from repeatedly configuring parameters. You can add, modify, and delete global variables. This topic describes how to manage global variables.
Prerequisites
Alibaba Cloud account registration and enterprise authentication have been completed.
Chat App Message Service has been activated.
A channel is created.
Procedure
Log on to the Chat App Message Service console.
In the left-side navigation pane, click Channel management.
On the Channel management page, click a channel ID or click Management in the Operation column that corresponds to the desired channel.
Click Global variable management in the navigation pane on the left.
Add a global variable
On the page that appears, click Add variable.
In the Add variable dialog box, set the following parameters as prompted: Variable code, Variable name, Variable type, and Example value.
Click OK.
NoteAfter you add the global variable, you can use it when you add or modify a message template for the current channel.
Modify a global variable
Find the desired variable and click Edit in the Operation column.
In the Edit variable dialog box, modify the variable content.
Click OK.
Delete a global variable
Find the desired variable and click Delete in the Operation column.
In the message that appears, click OK.
Search for a global variable
On the Global Variable Management page, click the search box.
Enter the name of the variable that you want to search for.
Click the Search icon.