Remove Data Column
AutomatR.DefaultActivities.Datatable.RemoveDataColumn
The "Remove Data Column" activity in AutomatR is designed to remove a DataColumn from a specified DataTable. This activity is useful for dynamically managing the structure of DataTables within workflows, allowing the removal of unnecessary columns based on either the column index or name.
Properties
Name | Description |
---|---|
Input | |
Column Index | Enter the index of the column to be removed from the DataTable. Integer variable or argument representing the index of the column. |
Column Name | Enter the name of the column to be removed from the DataTable. String variable or argument representing the name of the column. |
Data Table | Enter the DataTable variable containing the DataColumn to be deleted. DataTable variable or argument . |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Remove Data Column" activity. This can be useful for handling synchronization issues. Integer variable or argument containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Remove Data Column" activity onto the workflow.
- Configure the properties by specifying either the column index or column name to be removed from the DataTable.
- Provide the DataTable variable containing the DataColumn to be deleted.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to remove the specified column from the DataTable.
Example: Consider an example where the "Remove Data Column" activity is used to remove a column named "Salary" from a DataTable named "employeeData":
Remove Data Column:
Display Name: "Remove Salary Column"
Column Name: "Salary"
Data Table: employeeData
In this example, the activity removes the "Salary" column from the "employeeData" DataTable. The modification is applied directly to the DataTable.