Skip to main content

Read Column

AutomatR.Excel.Activities.ReadColumn

The "Read Column" activity in AutomatR is part of the Excel activities package, designed to read values from a specified column in an Excel worksheet. This activity facilitates the extraction of columnar data, enhancing automation workflows that involve Excel data manipulation.

Properties

NameDescription
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
Column IndexEnter the index for the column for which values need to be retrieved. String variables containing the column index.
Column NameEnter the column name for which values need to be retrieved. String variables containing the column name.
DelayEnter the wait time in seconds (Example: 5 seconds, i.e., 5) to start the activity. Integer variables containing the delay duration.
Output
OutColumnReturns the list of strings representing the values of the selected column. List of string variables containing the column values.

How to use:

  1. Drag and drop the "Read Column" activity onto the workflow.
  2. Configure the properties by specifying either the column name or column index for which values should be retrieved.
  3. Optionally, configure the delay.
  4. Execute the workflow to read values from the specified column in the Excel worksheet.

Example: Consider an example where the "Read Column" activity is used to read values from the column named "Amount":

Read Column:
Column Name: "Amount"
Delay: 2
OutColumn: AmountValues

In this example, the activity reads values from the "Amount" column with a delay of 2 seconds. The result, representing the values of the "Amount" column, is stored in the list of strings specified in the "OutColumn" property.

Note: Ensure that the "Read Column" activity is placed within an "Excel Root" activity to establish the Excel context for execution. Either the column name or column index must be provided for the activity to function properly.