Skip to main content

Remove Data Row

AutomatR.DefaultActivities.Datatable.RemoveDataRow

The "Remove Data Row" activity in AutomatR facilitates the removal of a DataRow from a specified DataTable. This activity is valuable for dynamic management of DataTable content within workflows, allowing the removal of specific rows based on either the DataRow object or the row index.

Properties

NameDescription
Input
Data TableEnter the DataTable variable from which a row has to be removed. DataTable variable or argument.
RowEnter a DataRow object to be removed from the DataTable. DataRow variable or argument.
Row IndexProvide a row index to remove the row from the DataTable. Integer variable or argument representing the index of the row to be removed.
Misc
Display NameProvides 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
DelaySpecifies the amount of time (in seconds) to wait before executing the "Remove Data Row" 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:

  1. Drag and drop the "Remove Data Row" activity onto the workflow.
  2. Configure the properties by specifying either the DataRow object or the row index to be removed from the DataTable.
  3. Provide the DataTable variable containing the DataRow to be deleted.
  4. Optionally, configure the delay and customize the display name.
  5. Execute the workflow to remove the specified row from the DataTable.

Example: Consider an example where the "Remove Data Row" activity is used to remove a specific row from a DataTable named "employeeData":

Remove Data Row:
Display Name: "Remove Employee Row"
Row Index: 2
Data Table: employeeData

In this example, the activity removes the row at index 2 from the "employeeData" DataTable. The modification is applied directly to the DataTable.