Output Datatable
AutomatR.DefaultActivities.Datatable.OutputDatatable
The "Output DataTable" activity in AutomatR converts a DataTable to a string format. This activity is useful for generating a string representation of the data within a DataTable, facilitating logging, debugging, or further processing.
Properties
Name | Description |
---|---|
Input | |
Data Table | Specifies the DataTable variable to be converted to a string. Variable or argument containing the DataTable . |
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 "Output DataTable" 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. |
Output | |
Result | Outputs the result of the DataTable conversion as a string . Variable or argument to store the resulting string. |
How to use:
- Drag and drop the "Output DataTable" activity onto the workflow.
- Configure the properties by specifying the DataTable variable to be converted to a string.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to convert the DataTable to a string, and the resulting string will be stored in the specified variable.
Example: Consider an example where the "Output DataTable" activity is used to convert a DataTable named "employeeData" to a string representation:
Output DataTable:
Display Name: "OutputDataTableActivity"
Data Table: employeeData
Result: dataTableAsString
In this example, the activity converts the "employeeData" DataTable to a string, and the result is stored in the variable "dataTableAsString" for further use in the workflow.