> 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.ImportCSV

- Component: `appmixer.utils.csv.ImportCSV`
- 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.ImportCSV>

Import a CSV file.

## Properties

_No properties defined._

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Select file (`fileId`) | filepicker | Select a CSV file to import. |
| Delimiter (`delimiter`) | text | A character to use as a delimiter between columns. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/utils/csv/GenerateOutputPort?outPort=out`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.csv.ImportCSV",
  "author": "Camilo Manrique <camilo@client.io>",
  "description": "Import a CSV file.",
  "version": "1.0.1",
  "dependencies": {
    "module": "1.0.1"
  },
  "properties": {
    "schema": {
      "properties": {
        "fileId": {},
        "filePickerFilename": {
          "type": "string"
        },
        "filePickerContent": {
          "type": "string"
        }
      }
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "fileId": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "delimiter": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "fileId": {
            "type": "filepicker",
            "label": "Select file",
            "index": 1,
            "tooltip": "Select a CSV file to import."
          },
          "delimiter": {
            "type": "text",
            "label": "Delimiter",
            "index": 2,
            "defaultValue": ",",
            "tooltip": "A character to use as a delimiter between columns."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/utils/csv/GenerateOutputPort?outPort=out",
        "data": {
          "properties": {
            "fileId": "inputs/in/fileId",
            "delimiter": "inputs/in/delimiter"
          },
          "transform": "./GenerateOutputPort#outputHeaders"
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
