OnPreview

onPreview 是一项在脚本中创建分支的事件操作中的操作。该操作在联系人预览时执行。

 

Dependencies

  • ONPREVIEW 是一个事件。
  • ONPREVIEW 事件在潜在联系人进入预览状态后才会触发(仅限主动呼出)。
  • 触发 Onpreview 后,在联系人进入预览状态前正在执行的任何脚本都可能被终止。脚本可以从 ONPREVIEW 恢复,否则脚本将被暂停。
  • ONPREVIEW 事件之后不能使用操作 RUNSUBRUNAPP
  • Snippet 操作可以在 ONPREVIEW 后使用,但不能引用或调用其他自定义 Studio 脚本。
  • API 调用可以在 ONPREVIEW 后的 Snippet 操作中引用,但不能用于确保 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.