WorkflowData

提供對透過平台 CXone 平台 或 API 建立的工作流程資料設定檔的存取。工作流程資料設定檔是一組預定義的金鑰/數值資料配對。此動作提供了一個允許您從可用設定檔清單中進行選擇的屬性。

在指令碼中執行該動作後,工作流程資料輸出可用作動態資料物件,其名稱與您所選擇的設定檔相同。

Dependencies

  • 如要在今後在同一指令碼中引用動態資料物件,則執行這一操作的指令碼須聲明該資料將返回到的動態資料物件。該範例指令碼顯示了在完成代碼為 {Emergency.raiseAlarm}WorkflowData 動作後的一項 Assign 動作。除在您為指令碼中的某個 snippet 中加入 Dynamic Emergency 聲明(在範例指令碼中是左上方的 snippet)的情況之外,主指令碼將無法編譯。由於Emergency被選為設定檔名稱,WorkflowData 動作填充了聲明的Emergency變數。聲明須與設定檔名稱相配對。
  • 輸入一項無效名稱而不使用下拉式清單,或透過管理介面或 API 停用某一設定檔,都會引致取出錯誤分支。錯誤分支應與預設分支一樣寫入指令碼。

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

這些屬性定義了動作執行時使用的資料。

屬性

描述

Caption

輸入在指令碼中唯一標識此操作的短語。標題出現在指令碼畫布上的動作圖示下。The default is the action name.

ProfileName 管理員透過平台或從 API 建立的有效工作流資料設定檔名稱的下拉式清單。該名稱被限制為與可以在 Studio 中建立的變數相同的命名模式,並將由 API 和管理員介面驗證。Studio 中不可建立設定檔,但儲存在設定檔下的資料可透過此動作存取。

Output Properties

這些屬性包含變數,用於儲存執行動作後返回的資料。當動作完成後,它們可供參考和使用。

屬性

描述

DynamicData

這個變數與在該操作在下拉式清單中選取的設定檔名稱相對應。

_Err 在取出錯誤分支時的輸出變數。

Result Branch Conditions

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

Default

指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。

OnError

動作未能正確執行時採用的路徑。例如,當出現連接不良、語法錯誤等意外問題時。_ERR變數(帶有一個下畫線字元)應填入針對問題的簡要說明。

Script Example

此範例不是一個完整的指令碼。使用此動作時需要額外的指令碼編寫工作。

In the following example, you can see that WorkflowData is the second action in the script, entitled Emergency WF Data.

Would you like to download this script?