Skip to content

Get Column Data Action: getColumnData

The getColumnData action retrieves all the data from a specific column in a CSV file. The extracted column data is stored in the variable defined in the Element Key field, allowing you to use it for further automation steps or validations.

Note: Ensure that the file being used is not open during the execution of the Case to avoid errors or conflicts.

Example: Suppose you have a CSV file named EmployeeRecords.csv, located at C:\Data, with the following data:

v7_csv_file_operations_csv_employeeRecords_getColumnData
EmployeeRecords.csv

You want to retrieve all the data in the Department column and store it in a variable named DepartmentData.

Steps to Configure:

  1. Select SET from the Action dropdown.
  2. Enter a variable name in the Element Key field (e.g., DepartmentData). This variable will store the extracted column data.
  3. Click on Form, select Functions, and choose CSVHANDLE.
  4. In the action field, select getColumnData and provide the following parameters:
    • fPath: Specify the path to the source CSV file (e.g., C:\Data\EmployeeRecords.csv).
    • columnName: Enter the name of the column to retrieve (e.g., Department).
  5. Click Save.
v7_csv_file_operations_getColumnData_list_view
List View
v7_csv_file_operations_getColumnData_grid_view
Grid View

Outcome on Execution:

  • The action retrieves all the data from the specified column (Department) in the CSV file.
  • The extracted data (e.g., HR IT Sales Marketing) is stored in the variable defined in the Element Key field (e.g., DepartmentData).
  • If the operation fails (e.g., invalid file path or column name), the variable stores false.
  • The variable can be referenced in subsequent steps using the syntax ${VariableName} (e.g., ${DepartmentData}).

Last updated: Sep 16, 2025
Back To Top