Writefile

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

將自訂資料寫入檔案,然後寫入檔案 CXone Mpower 伺服器,以供今後使用。

相依性

出現下列情況時,系統會承受過大負載:

  • 您的業務單元有超過 15 個並行通話。
  • 正在執行的指令碼包含與檔案相關的動作,例如 WritefileReadfileFileexist

這會導致限流。 您的業務單元將在執行指令以及使用其他功能(包括聯絡處理和狀態變更)時遇到延遲,直到積壓的進程完成。

  • 此動作不得用於寫入大量資料(大檔案)或在超高容量的呼叫中心使用。 例如,如果您有大量聯絡要寫入同一個檔案,請勿使用此動作。

  • 如需寫入大量資料,可考慮使用資料庫以代替。 大型檔案或需較長時間,且有可能超時。

支援的指令碼類型

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 數位

輸入屬性

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

屬性

描述

FileName 新檔案的名稱。
OutputText

要寫入檔案的資料。

附加

用於選擇下列其中一項的下拉式清單:

  • True:將新的輸出文字加入檔案末尾。
  • False:在寫入前移除較早前同名的檔案。

結果分支條件

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

條件

描述

Default

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

OnError

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