
StudioX user guide
使用数据管理器
“数据管理器”面板允许您管理自动化项目中的各种类型的数据。这些数据包括:
- 变量 - 存储不同类型的数据,并在项目中的活动之间传递数据。
- “参数”- 存储不同类型的数据并在工作流和应用程序之间传递。
- Resources - Excel resources and activities that add files, email accounts, applications, or browsers to the project.
- The following resources from Orchestrator, provided that the Robot is connected to Orchestrator.
- 流程 - 流程表示链接到特定文件夹的包版本。部署新流程时,该流程将对所有有权访问该 Orchestrator 文件夹的帐户可用。
- 资产 - 资产通常表示可在不同自动化项目中使用的共享变量或凭据。它们使您能够存储特定信息,以便机器人可以轻松访问它。
- 队列 - 队列是一个容器,可用于存储不限数量的项目。队列项目可以存储多种类型的数据,例如发票信息或客户详细信息,并使您能够创建由复杂逻辑下划线的大型自动化项目。
- Connections - Links between your automation and external applications.
菜单选项

- Create - Contains the options to create a new Variable, Argument, and a new Excel resource.
- “全部展开”- 展开 Data Manager 中的所有类别。
- “全部折叠”- 折叠 Data Manager 中的所有类别。
- 刷新 - 刷新数据管理器并将数据重新加载到其中。可以独立刷新类别。加载时,每个类别旁边都会显示一个加载图标。系统会在加载时禁用资源,并在加载完成后设置为可用。
- 按作用域分组 - 根据分配给变量的作用域,对面板中的变量进行分组。
- 与活动作用域同步 - 当活动作用域处于焦点时,例如选择“使用 Excel 文件”活动,它仅显示分配给其的匹配作用域的变量。
- Sort sections elements - Lets you sort data by selecting one of the available options: Default, Name A-Z, Name Z-A.
- Data manager filters - Lets you select what data is visible in the panel.
变量
创建和管理变量
- 在 Data Manager 中,选择“创建”
>“变量”。 - Indicate the name, data type, scope, and default value for the variable. The scope can be set to Main (available in the entire project) or to any container activity within the project. The default value is Main.
备注:
The scope of a variable determines the area in the workflow where it can be used. For example, having the scope set to
Mainallows the variable to be used in the entire project, while having a container activity set as a scope makes the variable available only within that container activity and the activities added inside.
Alternatively, you can create variables directly from the panel using the in-line option or from the Set Variable Value activity.

批量创建变量
要一次创建多个变量,请在数据管理器中右击“变量”,然后选择“批量创建变量”。在“变量面板”窗口中,单击“新建”,然后添加要添加的每个变量的详细信息。

编辑变量
-
打开 Data Manager 面板。
-
展开“变量”节点,然后展开变量的节点。
-
编辑以下任意内容:名称、数据类型、作用域、默认值。

删除变量
- 打开 Data Manager 面板。
- 展开“变量”节点,然后右键单击变量并选择“删除变量”。
或者,选择变量,然后按键盘上的 Delete 键。
将变量转换为参数
- 打开 Data Manager 面板。
- 在“变量”下,右击变量以打开上下文菜单。
- 选择“转换为参数”。
新转换的参数位于面板的“参数”部分。
查找对变量的所有引用
- 打开 Data Manager 面板。
- 在“变量”下,右击变量以打开上下文菜单。
- 选择“查找引用”。 “查找引用”面板将打开,并显示对项目中变量的所有引用。
参数
创建和管理参数
- 在 Data Manager 中,选择“创建”
>“参数”。 - 指定名称、方向、数据类型、是否需要以及默认值。默认情况下,所有新参数均为 string 类型,且方向为输入。
或者,您可以使用内联选项直接从面板创建参数。

批量创建参数
要一次创建多个变量,请在数据管理器中右键单击“参数”,然后选择“批量创建参数”。在“参数”窗口中,单击“新建”,然后为要添加的每个参数添加详细信息。

编辑参数
-
打开 Data Manager 面板。
-
展开“参数”节点,然后展开参数节点。
-
编辑以下任意内容:名称、方向、数据类型、是否必填、默认值。

删除参数
- 打开 Data Manager 面板。
- 在“参数”下,右键单击参数以打开上下文菜单。
- 选择“删除”。
或者,选择参数,然后按键盘上的 Delete 键。
将参数转换为变量
- 打开 Data Manager 面板。
- 在“参数”下,右键单击参数以打开上下文菜单。
- Select Convert to Variable.
The newly converted variable can be found in the Variables section of the panel.
查找对参数的所有引用
- 打开 Data Manager 面板。
- 在“参数”下,右键单击参数以打开上下文菜单。
- 选择“查找引用”。 “查找引用”面板将打开,并显示对项目中参数的所有引用。
复制和粘贴参数及变量
您可以在任务中复制和粘贴参数或变量。右键单击变量或参数,然后选择“复制”。要粘贴它,请在“数据管理器”面板中单击鼠标右键,然后选择“粘贴”。
When a variable or argument with the same name already exists, a number is added to the duplicate's name. For example, if a variable with the name number already exists, the copied variable is renamed to number_1.
或者,您可以使用 CTRL + C 和 CTRL + V 键盘快捷方式复制和粘贴变量和参数。
管理变量和参数的注释
您可以向变量和参数添加批注,以提供上下文,或者只是为了更好地跟踪这些变量或参数的用途和内容。
要添加注释:
-
打开 Data Manager 面板。
-
右键单击参数或变量以打开上下文菜单。
-
选择“添加注释”。
-
输入文本,然后单击固定图标。
备注:- 展开时,固定注释将显示在面板中的变量或参数下方。
- 具有未固定注释的参数和变量旁边会显示一个图标。
- 当项目关闭或作为模板发布时,系统将保存注释的固定状态。

要编辑或删除注释,请右击参数或变量,然后选择“编辑注释”或“删除注释”。
或者,您可以通过在面板中单击并更改文本来编辑固定的注释。

You can order variables and arguments freely by dragging and dropping them. This feature is disabled when you select the Group items by scope option.
资源
在“Windows - 旧版”和 Windows 项目中,您可以展开“数据管理器”中的“资源”节点,以查看和管理当前项目文件中的以下资源:
- 在“使用应用程序/浏览器”活动中添加的应用程序和浏览器。
- Word documents added in Use Word File activities.
- 在“使用 PowerPoint 演示文稿”活动中添加的 PowerPoint 演示文稿。
- 在“使用 Outlook 桌面应用程序”、“使用 Outlook 365”和“使用 Gmail”活动中添加的电子邮件帐户。
- 自动化中添加的 Excel 文件:
- Files added in Use Excel File activities or from the Data Manager using the Connect to new Excel file option for use with the default modern Excel activities available in StudioX.
- Files added from the Data Manager using the Connect to new Workbook file option for use with Workbook activities available in the Activities panel under the Developer category.
- The project notebook.For more information, see Adding an Excel File to an Automation.
连接到 Excel 文件(新式 Excel 活动)
To connect to an Excel file and use it with the default modern activities available in StudioX:
- At the top of the Data Manager panel, select Plus > Connect to a new Excel file.
- In the Manage resource window, provide the following information, and then click OK:
-
Select Excel file - Click Browse
next to the field, and then browse to and select the Excel file to add to the automation. -
And give it a name for later - Enter a name by which to refer to the file in the automation project (by the default, the file name).
-
保存更改 - 如果要在自动化结束时保存文件,请选择此选项。否则,项目执行后,文件将返回到初始状态。默认情况下,此选项处于选中状态。
When the option to save changes is disabled, the message save off is displayed next to the Excel resource entries in the Plus
menu and in the Data Manager panel. -
“只读” - 如果要以只读模式打开文件,请选择此选项。如果文件被锁定以进行编辑或具有编辑密码,这使您可以执行数据提取操作。默认情况下未选中此选项。
-
Read formatting - Select the read formatting for the file:
- “默认”- 使用 Excel 返回的默认格式。
- “原始值”- 使用原始值并忽略所有格式。
- “显示值” - 检索 Excel 中显示的值。
-
作用域 - 选择资源的作用域。默认情况下,作用域设置为主容器。要优化性能,请将作用域设置为最靠近工作流中使用资源的活动所在的容器。
-
连接到 Excel 文件(Workbook 活动)
Workbook activities are available only if the Developer filter is selected from the Activities panel.
在使用多个 Workbook 活动和相同大型 Excel 文件的项目中,您可以在数据管理器中连接到 Excel 文件以将其添加为资源,以此来实现最佳运行时性能。这可确保在运行时一次性为所有活动在内存中加载文件。如果您选择在每个 Workbook 活动中提供 Excel 文件的路径,则系统会在每个活动的内存中加载该文件。
要将 Excel 工作簿添加为资源,请执行以下操作:
- 在 Data Manager 顶部,选择加号 >“连接到新的 Workbook 文件”。此时将显示“管理资源”窗口。
- 配置资源:
- 选择 Excel 文件 - 浏览并选择 Excel 文件。
- 并为其命名,供以后使用 - 输入在工作簿活动中引用文件的名称(默认情况下为文件名)。 这是“工作簿”属性的“加号”菜单中提供的选项的名称,用于引用工作簿文件。
- 密码 - 输入文件的密码(如果适用)。
- 作用域 - 选择资源的作用域。默认情况下,作用域设置为主容器。要优化性能,请将作用域设置为最靠近工作流中使用资源的活动所在的容器。
创建资源后,您可以通过在“数据管理器”中右键单击资源,然后选择“配置”来编辑其配置。 通过从加号菜单中选择资源,可以在多个 Workbook 活动中引用该资源。
管理资源
要转到项目中定义资源的活动,请双击“Data Manager”中的资源。
要从 Data Manager 管理资源,请右键单击该资源,然后在上下文菜单中选择一个选项:
- 打开 - 打开作为资源添加的 Excel、PowerPoint 或 Word 文件。
- 打开文件位置 - 打开包含作为资源添加的 Excel、PowerPoint 或 Word 文件的文件夹。 使用远程文件(例如 SharePoint)时,此选项不可用。
- 配置 - 打开“管理资源”窗口,您可以在其中编辑 Excel 资源的属性。
- “删除” - 从项目中删除资源。
流程、资产和队列
Data Manager 显示当前选定的 Orchestrator 文件夹中可用的 Orchestrator 资源(流程、资产和队列)。该面板显示传统文件夹和新式文件夹中的资源。阅读有关文件夹的更多信息。
If the Robot connected to Orchestrator is of type Standard, then the Data Manager panel can display only the Classic folder which has this Robot provisioned. If the Robot is of type Floating, then the panel displays all Classic and Modern folders that this Robot has access to. Read more about creating Robots in Orchestrator here.
如要使用流程、资产或队列,请将其从 Data Manager 拖放到“设计器”面板中。根据资源类型建议一组活动,选择其中一个活动会将活动添加到预配置为使用所选资源的项目中。例如,如果您拖放流程,则会显示“添加活动”搜索栏,其中包含建议的活动“调用流程”、“启动作业”和“运行并行流程”。选择“调用流程”将添加活动,该活动的文件夹路径和流程名称字段配置有流程数据。
您可以按如下方式管理 Orchestrator 资源:
- Right-click any resource under Assets, Queues, and Processes to access the context menu where you have the option to open the resource in Orchestrator or copy the name and use it in activities that interact with such resources.
- To update Orchestrator resources, click the Refresh button at the top of the Data Manager panel.
备注:
- When using a classic, manually provisioned robot, it must be granted
Viewpermissions for the corresponding resources (that is, Assets, Queues, and Processes) to appear in the panel. Read more about setting up Roles and permissions in Orchestrator. - 如果 Orchestrator 中既有传统文件夹又有新式文件夹,并且您已使用新式文件夹中的机器人连接到 Orchestrator(已登录帐户或使用计算机模板密钥进行连接),则传统文件夹中的流程在 Data Manager 面板中不可用。如要从传统文件夹访问流程,请使用具有标准计算机密钥连接的传统机器人连接到 Orchestrator。
- When using a classic, manually provisioned robot, it must be granted
连接
查看项目中使用的连接
- 打开 Data Manager 面板。
- Expand the Connections node to view a list of connections used in the project.
- 展开连接节点,查看项目中使用该连接的活动列表。此外,您可以进一步展开每个活动,以查看与连接关联的更多特定于用户的数据(例如,电子邮件文件夹以及电子邮件和文件所在的 Cloud 存储文件夹)。
备注:
特定活动的连接会显示在 Data Manager 中,并且仅在保存项目后才会显示。