Description

Clears the specified data table of all data.



Attributes

Input

  • DataTable - The data table object to be cleared of all data.

Common

  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

Misc

  • DisplayName - Renames the activity.


Example

  1. Create a DataTable variable called dt.
  2. Add a Generate Data Table inside the initial Sequence. 
  3. In the Generate Data Table DataTable field under Properties, add dt.
  4. In the Generate Data Table ColumnSeparators field under Properties, write ";", and in the NewLineSeparator field, write "|".
  5. In the Generate Data Table Input field, type "1; Nicole|2; John|3; Michael". This would be the sample values inside the data table.
  6. Add an Add Data Row activity, and in the DataTable field, add the dt variable.
  7. In the Add Data Row Array Row field, write {"4","Jane"}.
  8. Add a Clear Data Table activity.
  9. In the Clear Data Table DataTable field, add the dt variable. 

    The use case should look as the following screenshot:



After the execution, the generated data table should be cleared of all data.