SAVE VARIABLES
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
将客户定义的变量从其呼叫脚本传输到其
|
依赖关系
Snippet 操作必须始终位于此操作之前。 代码片段是创建变量信息的地方,而 Save Variables 操作是存储变量信息的地方。
支持的脚本类型
|
|
|
|
|
|
|
|
|
通用 |
聊天 | 电话 | 語音邮件 | 工作项目 | 短信 |
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
|
潜在联系 Id |
该属性的值应始终为 _prospectiveContact.ProspectiveContactID。$value. 这使变量可以显示在 OnDisposition 脚本中。 |
|
自定义变量 |
在此 Save Variables 操作之前,在 |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
|
默认 |
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. |
| 成功 | 完成操作而无错误,且 API 调用或数据返回全部成功时所采用的路径(2xx 响应代码)。 |
| 错误 | Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem. |
脚本示例
这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。
此示例是一个下标,它使用 Snippet 和 Save Variables 操作来创建和存储应发送到 OnDisposition 脚本的动态数据。
Snippet 操作包含与下图所示类似的代码:
DYNAMIC customerValues
ASSIGN howMany=6
ASSIGN customerValues.Name='Name'
ASSIGN customerValues.Age=29
ASSIGN customerValues.EmployeeId='123456'
ASSIGN customerValues.IsSalary=false
Save Variables 操作的属性应与下图所示相似:
-
将潜在联系人 ID设置为_prospectiveContact.ProspectiveContactID.$value。
-
将自定义变量设置为代码片段代码中使用的动态数据对象的名称。在示例中,它是customerValues