GETLIST

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Icon of GetList: gray list with a down arrow

检索先前使用 PutvaluE 操作存储的完整值列表。 该操作还会返回数组中项目的数量,该数量存储在 Item Count Var 变量中。PUTVALUE 将值存储在以竖线分隔的 (|) 字符串中,该字符串可以作为数组进行访问。

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

通用

Email 聊天 电话 語音邮件 工作项目 短信

相关的操作

此操作属于在数据库表中存储和检索数据的若干操作之一,目的是使其他脚本可以访问这些数据;其运行方式如同字段或值的列表一样。 使用它们来存储多个值或在其他脚本中进一步需要的值。 包括此操作的完整操作列表如下:Putvalue、Getvalue、Remvalue、Getlist以及Clearlist。

这些操作使用唯一的数据类型,而这种数据仅能通过此组 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.

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

范围

选择此操作处理的值对其他联系人可见的级别。 只有共享相同可见性范围的联系人才能够访问相同的数据。 选项包括:

重要 您所选的范围必须与脚本中包含的所有其他列表操作所设置的范围相匹配。列表操作包括Putvalue、Getvalue、Remvalue、Getlist 和 Clearlist。 即使列表的名称相同,如果范围设置不匹配,它们也不会被识别。

名称 用于标识值。 可以是任何名称或数字。 名称不区分大小写。 使用 Getvalue 检索值时,Name 必须相同。 如果 Name 属性不匹配,即使 Scope 设置相同,它们也无法识别对方。
变量 The name of the variable that you want to hold the retrieved values.
项目计数变量 The name of the variable that will receive the number of values that were received. This variable can be used with other actions, such as LOOP and PARSE to separate values in the array.

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

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.