ConnectRequest

This help page is for Desktop Studio.This information is also available for CXone Studio.

本页内容针对 Controlled Release (CR) 的产品或特性。如果您不是 CR 组的成员,如需了解更多信息,请联系您的 CXone 客户代表

执行 Integration Hub 请求。如果您与此操作一起使用的连接包含密钥,您可以在包含此操作的脚本中使用它们。

双击此操作会打开 Integration Hub,您可以在其中配置希望该操作使用的连接集成。

Dependencies

  • 这个操作需要 Integration Hub
  • 此操作通常与 ConnectAuth 操作一起使用。
  • 脚本中此操作的每个实例都可以执行一个连接。打开 Integration Hub 并单击选择图标 一个带有复选标记的圆圈图标。,将您想要的连接分配给此操作。

  • 对于 Studio 请求,必须使用动态对象填充 requestPayload 属性,其中包含有关该请求的详细信息请求,包括 URL、标头、动词、参数、机密等。内容必须为 JSON 格式。使用 Snippet 操作创建动态对象及其成员并将其转换为 JSON。

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

Input Properties

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

属性

说明

说明文字

输入在脚本中唯一标识此操作的短语。标题显示在脚本画布上的操作图标下方。The default is the action name.

connectName 定义与此操作一起使用的特定连接。您可以双击此操作,从 Integration Hub 分配连接。
requestName 定义在指定连接器中配置为与此操作一起运行的特定请求。您可以双击此操作,从 Integration Hub 分配请求。
requestPayload 以 JSON 格式输入指定请求的有效负载。您可以使用Snippet 操作将将请求转换为 JSON

输出属性

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

属性

说明

requestBodyVarName (out) 保存请求正文。默认为 requestBody
requestErrorDetailsVarName (out) 如果请求出错,则保存错误详细信息。默认为 requestErrorDetails
requestHeadersListVarName (out) 保存请求标头列表。默认为 requestHeadersList
requestProxyVarName (out) 保存请求代理。默认为 requestProxy

结果分支条件

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

条件

说明

Default 除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。
OnError

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

OnSuccess

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

OnTimeout

如果请求在 Integration Hub 中的请求配置中定义的毫秒数内没有响应,则采用的路径。