ConnectRequest

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

本頁面中的檔案適用於受控發布 (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.

通用

電郵 聊天 電話 語音郵件 工作項目 SMS 數位

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的請求配置中定義的毫秒數內沒有回應請求時採用的路徑。