> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.csv.GetRows

- Component: `appmixer.utils.csv.GetRows`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.utils.csv 2.0.9](https://connectors.appmixer.com/connector/appmixer.utils.csv/2.0.9.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.csv/2.0.9/component/appmixer.utils.csv.GetRows>

Get rows from a CSV file.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Use column names (`withHeaders`) | toggle | - |
| Filter rows (`filterRows`) | toggle | Set to true if you want to define filters to return only rows that match your filter criteria. |

## Input ports

### Port `in`

Fields are loaded dynamically from `/component/appmixer/utils/csv/CreateInspector?outPort=out`.

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| `fileId` | string | - |
| `rows` | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.csv.GetRows",
  "author": "Camilo Manrique <camilo@client.io>",
  "description": "Get rows from a CSV file.",
  "version": "1.0.1",
  "dependencies": {
    "module": "1.0.1"
  },
  "private": false,
  "properties": {
    "schema": {
      "properties": {
        "withHeaders": {
          "type": "boolean"
        },
        "filterRows": {
          "type": "boolean"
        }
      },
      "required": [
        "withHeaders",
        "filterRows"
      ]
    },
    "inspector": {
      "inputs": {
        "withHeaders": {
          "type": "toggle",
          "label": "Use column names",
          "index": 1,
          "defaultValue": true,
          "attrs": {
            "label": {
              "data-tooltip": "Set to true if the first row represents column names (CSV header) and you want to use them to identify the columns."
            }
          }
        },
        "filterRows": {
          "type": "toggle",
          "label": "Filter rows",
          "index": 2,
          "defaultValue": true,
          "tooltip": "Set to true if you want to define filters to return only rows that match your filter criteria."
        }
      }
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object"
      },
      "source": {
        "url": "/component/appmixer/utils/csv/CreateInspector?outPort=out",
        "data": {
          "properties": {
            "withHeaders": "properties/withHeaders",
            "filterRows": "properties/filterRows"
          },
          "transform": "./CreateInspector#getRowsInspector"
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "fileId",
          "value": "fileId",
          "schema": {
            "type": "string",
            "example": "a1686006-35c8-4ffc-b23e-d687858cd418"
          }
        },
        {
          "label": "rows",
          "value": "rows",
          "schema": {
            "type": "array",
            "example": [
              {
                "id": "1",
                "name": "Jane Doe",
                "email": "jane.doe@example.com"
              },
              {
                "id": "2",
                "name": "John Smith",
                "email": "john.smith@example.com"
              }
            ]
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
