Skip to main content

Read Row

AutomatR.DefaultActivities.WorkBook.ReadRow

The "Read Row" activity in AutomatR is part of the WorkBook activities package, allowing users to read the values of an entire row in an Excel spreadsheet. This activity is useful for extracting data from specific rows in Excel for further processing in your workflow.

Properties

NameDescription
Input
Excel File PathSpecifies the full path of the Excel workbook on the local drive, including the filename (e.g., "C:\excelActivities\workbook.xlsx"). String variables containing the file path.
PasswordSpecifies the password for the workbook if required. Object variables containing the password.
Row IndexSpecifies the index of the row to be read. Enter the row index as a string. For example, "1" for the first row. String variables containing the row index.
Sheet NameSpecifies the name of the spreadsheet from which to read the row. String variables containing the sheet name.
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 variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Read Row" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 5 seconds, enter "5".
Output
ResultOutputs the values of the selected row as a list of strings. Variables of type List<string> to store the values of the row.

How to Use

  1. Drag and drop the "Read Row" activity onto the workflow.
  2. Configure the properties by specifying the Excel file path, sheet name, and row index.
  3. Optionally, configure the delay.
  4. Execute the workflow to read the values of the specified row in the Excel spreadsheet.

Example

Consider an example where the "Read Row" activity is used to read the values of the third row from an Excel sheet named "DataSheet" in a workbook located at "C:\excelActivities\workbook.xlsx":

Read Row:
Excel File Path: "C:\excelActivities\workbook.xlsx"
Sheet Name: "DataSheet"
Row Index: "3"
Result: rowValues

In this example, the activity reads the values of the third row from the "DataSheet" and stores them in the List<string> variable "rowValues" for further processing in the workflow.