Data Table
Build Data Table
UiPath.Core.Activities.BuildDataTable
Creates a DataTable according to a specified schema.
Project compatibility
Windows | Windows - Legacy
Configuration
Clicking the DataTable button in the activity body opens the Build Data Table window, which enables
you to customize the table to be created.
By default, two columns and two rows are displayed. The first row contains some values that can be
edited. The second row cannot be removed, but it is not displayed in the output table.
Clicking the Add Column button opens the New Column window. It helps you create and
customize each new column you want to add to the data table. After creating a new column, you can
edit its properties by clicking the Edit Column button.
NOTE: Changing the data type of a column erases all data in that column.
It contains the following fields:
● Column Name - The title of the column. This field supports only strings.
● Data Type - The type of values that the new column is going to accept.
● Allow Null - If this check box is selected, null values can be added to the rows of this column.
● Auto Increment - The check box is displayed only if the Data Type is set to Int32. If selected,
the value of this column is automatically incremented by 1 every time a new row is added.
● Default Value - The default value of all the rows that are to be added to this column.
● Unique - If selected, all the rows in this column need to have unique values.
● MaxLength - The maximum number of characters accepted for this column. If you do not
want to enforce a maximum length, the default value is -1.
In the Properties Panel
Options
● DisplayName - The display name of the activity.
● Private - If selected, the values of variables and arguments are no longer logged at Verbose
level.
Output
● DataTable - A DataTable variable that stores the information added in the Build Data Table
window.
Clear Data Table
UiPath.Core.Activities.ClearDataTable
Clears all the data in the specified DataTable.
Project compatibility
Windows | Windows - Legacy
Configuration
In the Properties Panel
Options
● DataTable - The DataTable object to be cleared of all data.
● DisplayName - The display name of the activity.
● Private - If selected, the values of variables and arguments are no longer logged at Verbose
level.
Collection to Data Table
UiPath.Core.Activities.CollectionToDataTable
Description
Converts a specified collection to a DataTable.
Project compatibility
Windows - Legacy | Windows | Cross-platform
Windows, Cross-platform configuration
● Collection - The collection to be converted into a DataTable.
● Items - The items to be added. Click the field to open the Collection Builder window.
NOTE: Changing the data type of the collection after selecting it in the Collection field
triggers a validation error. The collection with the new data type must be added again to the
activity.
Additional options
Output
● DataTable - Reference to the resulting DataTable for use in other activities.
Windows - Legacy configuration
Properties panel
Common
● DisplayName - The name of the activity in the Designer panel.
Input
● Collection - The collection to be converted into a DataTable.
Misc
● Private - If selected, the values of variables and arguments are no longer logged at Verbose
level.
● TypeArgument - A drop-down list that enables you to choose what .NET datatype you want to
use with the activity.
Output
● DataTable - Reference to the resulting DataTable for use in other activities.