GetMessages
This help page is for CXone Studio. This information is also available for Desktop Studio.
|
Retrieves an inbound digital Any channel, contact, or skill associated with Digital Experience. message and stores it as a structured variable. You can reference the structured variable anywhere regular variables can be referenced. GetMessages allows you to name the variables that contain the pieces of the retrieved message. For example, if you name the BodyTextVar variable "body", you can use the {body} variable anywhere curly braces are supported. This is especially useful in generating automatic responses. This action is the digital equivalent of the |
Dependencies
- This action requires Digital Experience.
- Before working with digital scripts, learn about the differences between traditional ACD scripts and digital scripts.
- Using a pipe delimiter ( | ) in an message subject line causes the subject to be split into an array. If this happens, the subject line must be pieced back together.
Supported Script Types
|
Digital |
Input Properties
These properties define data that the action uses when executing.
Property |
Description |
---|---|
|
Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. |
Contact Id |
The variable that holds the contact ID. |
From Variable |
The name of the variable that contains the |
To Variable |
The name of the variable that contains the |
CC Variable |
The name of the variable that contains the list of CC list of recipients on the |
Date Variable |
The name of the variable that contains the date of the |
Body Text Variable |
The name of the variable that contains the body text of the |
Attachment List Variable |
The name of the variable that contains the list of file attachments. |
|
The maximum size the message body can have. |
Output Variables
These properties contain variables that hold data returned from executing the action. They're available for reference and use when the action completes.
Property |
Description |
---|---|
Attachment List Variable |
Holds the list of attachments to the current message. The default variable name is |
Body Text Var |
Holds the body text of the current message. The default variable name is |
CC Variable |
Holds the customer card. The default variable is |
Date Variable |
Holds the date of the current message. The default variable is |
From Variable |
Holds the sender of the current message. The default variable is |
Subject Variable |
Holds the subject line of the current message. The default variable is |
To Variable |
Holds the recipient of the current message. The default variable is |
Result Branch Conditions
Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.
Condition |
Description |
---|---|
Default | Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. |
OnError |
The path taken when the action doesn't execute properly. For example, when there's an unexpected problem, such as |
OnSuccess |
Path taken if the action completes without errors and any API calls or data returns were successful (2xx response codes). |