GETVALUE
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
检索由 要检索整个数组,请使用GETLIST 操作。 |
支持的脚本类型
|
|
|
|
|
|
|
|
|
|
通用 |
聊天 | 电话 | 語音邮件 | 工作项目 | 短信 |
|
相关的操作
此操作属于在数据库表中存储和检索数据的若干操作之一,目的是使其他脚本可以访问这些数据;其运行方式如同字段或值的列表一样。 使用它们来存储多个值或在其他脚本中进一步需要的值。 包括此操作的完整操作列表如下:
这些操作使用唯一的数据类型,而这种数据仅能通过此组 Studio 操作来访问。 无法以任何其他方式来访问数据。 无论用户拥有何种权限,他们都无法访问并使用此数据库。
这些值在数据库表中列出的时间有限,具体取决于 Putvalue 操作中 TTL 小时 属性的配置。默认值为 24 小时,但可以设为 1 小时到 168 小时(7 天)。 您可以使用 Remvalue 操作删除 TTL 时间之前的数据。这样您就可以完全控制脚本中的数据。
Notes:
- If several variables need to be accessed by other scripts or contacts, a database is generally the best solution.
- Non-persistent public variables can be shared by other scripts or contacts throughout the life of the script that sets those variables. The variables are automatically cleaned up once they are released.
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
| 范围 |
选择此操作处理的值对其他联系人可见的级别。 只有共享相同可见性范围的联系人才能够访问相同的数据。 选项包括:
重要 您所选的范围必须与脚本中包含的所有其他列表操作所设置的范围相匹配。列表操作包括 |
| 名称 | 用于标识值。 可以是任何名称或数字。 名称不区分大小写。 使用 Getvalue 检索值时,Name 必须相同。 如果 Name 属性不匹配,即使 Scope 设置相同,它们也无法识别对方。 |
| 变量 | The name of the variable that you want to hold the retrieved values. |
| 默认值 | The value you would provide to any record without a matching mapping. Cannot exceed 200 characters. |
| 删除 | True (the default) causes the value to be removed from the Scope property after it is retrieved. False allows repetitive access to the same value. |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
|
默认 |
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. |
|
NoData |
Path taken if there are no values for the specified properties. |
提示与技巧
- 列表会根据给定名称临时存储超过一个项目。要从列表中检索所有项目,请使用对 Getvalue 的重复调用,或对 Getlist 的一次调用。
- 使用Getvalue检索多个值时,将删除属性设置为True。 一旦检索至最后一个值,后续调用将触发 No Data 分支条件。
- 多人脚本是使用 Getvalue 和 Putvalue 操作的一个实例。 要创建此脚本,发起多人方必须使用 Putvalue 保存多人 ID。 关注的呼叫者在使用 Getvalue 检索会议 id 后,即可加入会议。