OnPreview

onPreview 動作是一個事件動作,用於在您的指令碼中建立一個分支。在發生聯絡人預覽時執行。

 

Dependencies

  • ONPREVIEW是個事件。
  • 在潛在聯絡人進入預覽狀態之前,不會觸發 ONPREVIEW 事件(僅限主動式傳出)。
  • 觸發 Onpreview 時,在聯絡人進入預覽狀態之前正在執行的任何指令碼都可能被終止。指令碼可以從 ONPREVIEW 開始恢復,否則將暫停指令碼。
  • 動作 RUNSUBRUNAPP 不能在 ONPREVIEW 事件後使用。
  • 可以在 ONPREVIEW 事件之後使用 Snippet 動作,但不能引用或調用其他自訂 Studio 指令碼。
  • 可以在 ONPREVIEW 之後的 Snippet 動作中引用API 調用,但不能用於確保 API 調用的存取權杖。

Supported Script Types

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

電話

Properties

None.

Result Branch Conditions

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

條件

描述

Default

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

Script Example

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

On this example of a basic script using the OnPreview action, OnPreview is connected to the Page action. The Page action is configured with the page to open.

An example of a basic script using the OnPreview action. The action is connected to a Page action, which is configured with the page to open.