GetMessages
This help page is for Desktop Studio. This information is also available for CXone 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 |
---|---|
Caption |
Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. |
ContactID |
The variable that holds the contact ID. |
SubjectVar |
The name of the variable that holds the subject of the message. |
FromVar |
The name of the variable that contains the |
ToVar |
The name of the variable that contains the |
CCVar |
The name of the variable that contains the list of CC list of recipients on the |
DateVar |
The name of the variable that contains the date of the |
BodyTextVar |
The name of the variable that contains the body text of the |
AttachmentListVar |
The name of the variable that contains the list of file attachments. |
|
The maximum size the message body can have. |
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). |
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 |
---|---|
AttachmentListVar (out) |
Holds the list of attachments to the current message. The default variable name is |
BodyTextVar (out) |
Holds the body text of the current message. The default variable name is |
CCVar (out) |
Holds the customer card. The default variable is |
DateVar (out) |
Holds the date of the current message. The default variable is |
FromVar(out) |
Holds the sender of the current message. The default variable is |
SubjectVar (out) |
Holds the subject line of the current message. The default variable is |
ToVar (out) |
Holds the recipient of the current message. The default variable is |