OnPreview

此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。

Icon of OnPreview: pink eye with a lightning bolt badge

一個事件動作,當聯絡人發生預覽時,會在您的程式碼中建立分支。

相依性

  • ONPREVIEW 是一個事件。
  • Using ONPREVIEW is required when using a custom script for preview dialing with Personal Connection Proactive Voice. In addition to following the steps to enable preview dialing, ensure that: 
  • ONPREVIEW 事件只有在潛在聯絡進入預覽狀態後才會觸發(僅適用於 Proactive Outbound)。
  • 當 Onpreview 觸發時,在聯絡進入預覽狀態之前正在執行的任何程式碼均可能被終止。程式碼可能會從 ONPREVIEW 繼續執行,否則程式碼將會被暫停。
  • 動作 RUNSUB 和 RUNAPP 不可在 ONPREVIEW 事件之後使用。
  • Snippet 動作可用於 ONPREVIEW 之後,但不能參考或呼叫其他自訂Studio指令碼。
  • API 呼叫可在Snippet動作中被參照,該動作緊接於ONPREVIEW之後,但不能用於確保 API 呼叫的存取權杖安全。

支援的程式碼類型

電話指令碼類型的圖示 - 一種帶有彎曲電話線的老式電話聽筒,表示會發出聲音。

電話

屬性

無。

結果分支條件

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

條件

描述

預設

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.

程式碼範例

下面是一個範例,說明如何在指令碼中使用此動作。 這不是一個完整的指令碼。 可能需要額外的指令碼。

在此使用 OnPreview 動作的基本指令碼示例中,OnPreview 連接到頁面動作。 頁面動作被配置為打開頁面。

使用 OnPreview 動作的基本腳本範例。該動作連接至一個 Page 動作,而該 Page 動作已設定要開啟的頁面。