GETMESSAGES

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

一个聊天气泡,里面有一个向下指向的箭头。

检索一条呼入的数字Closed 与 Digital Experience (DX) 相关联的任何渠道、联系或技能。消息,并将其存储为结构化变量。 您可以在任何可以引用常规变量的位置引用结构化变量。

GetMessages 允许您为包含检索到的消息各部分的变量命名。 例如,如果将 BodyTextVar 变量命名为“body”,则可以在支持使用花括号的任何位置使用 {body} 变量。 这对生成自动响应特别有用。

此操作是 Getemail 操作的数字等效操作。

依赖关系

支持的脚本类型

Icon of purple computer monitor with a mobile device overlapping its lower right corner

Digital

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

通话 ID

存储联系人 IDClosed 分配给每个联系人的唯一数字标识符。的变量,例如 {ContactId}。

来自变量 The name of the variable that contains the sender of the message. The default is FromVar.
结束变量 The name of the variable that contains the To address of the message. The default is ToVar.

CC Variable

The name of the variable that contains the list of CC list of recipients on the message. The default is CCVar.
日期变量 The name of the variable that contains the date of the message. The default is .
正文文本变量 The name of the variable that contains the body text of the message. The default is BodyTextVar.
附件列表变量 The name of the variable that contains the list of file attachments. The default is AttachmentListVar.
正文文本长度最大值 The maximum size the message body can have. You can choose from Limit 2K, Limit 4K, Limit 8K, Limit 16K, or Limit 32K. The default is Limit 32K.

输出变量

这些属性包含保存执行操作返回的数据的变量。 它们在操作完成后供引用和使用。

属性

说明

附件列表变量

将附件列表保存到当前消息。 默认变量名为 AttachmentListVar。

正文文本变量

保存当前消息的正文。 默认变量名为 BodyTextVar。

CC 变量

持有客户卡。 默认变量是 CCVar。

日期变量

保存当前消息的日期。 默认变量为 DateVar。

来自变量

保存当前消息的发送者。 默认变量为 FromVar。

主题变量

保存当前消息的主题行。默认变量为 SubjectVar。

结束变量

保存当前消息的收件人。 默认变量是 ToVar。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认 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

操作无法正确执行时所采用的路径。 例如,当出现意外问题时,如连接不良、语法错误、HTTP 错误代码等。 ERR 变量中应填入对问题的简明解释。

OnSuccess

完成操作而无错误,且 API 调用或数据返回全部成功时所采用的路径(2xx 响应代码)。