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

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

Create a new CSV file with an initial text content.

## Properties

_No properties defined._

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| File name (`filename`) | text | The name of the CSV file. |
| Delimiter (`delimiter`) | text | A character to use as a delimiter between columns. |
| Content (`initialContent`) | textarea | A CSV formatted content to initialize the new file. |

## 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.CreateCSV",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new CSV file with an initial text content.",
  "version": "1.0.1",
  "dependencies": {
    "module": "1.0.1"
  },
  "private": false,
  "properties": {
    "generateOutputPort": {
      "type": "boolean"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "filename": {
            "type": "string"
          },
          "initialContent": {
            "type": "string"
          },
          "delimiter": {
            "type": "string"
          }
        },
        "required": [
          "initialContent",
          "filename",
          "delimiter"
        ]
      },
      "inspector": {
        "inputs": {
          "filename": {
            "type": "text",
            "label": "File name",
            "index": 1,
            "tooltip": "The name of the CSV file."
          },
          "delimiter": {
            "type": "text",
            "label": "Delimiter",
            "index": 2,
            "defaultValue": ",",
            "tooltip": "A character to use as a delimiter between columns."
          },
          "initialContent": {
            "type": "textarea",
            "label": "Content",
            "index": 3,
            "defaultValue": "",
            "tooltip": "A CSV formatted content to initialize the new file."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/utils/csv/GenerateOutputPort?outPort=out",
        "data": {
          "properties": {
            "initialContent": "inputs/in/initialContent",
            "delimiter": "inputs/in/delimiter"
          },
          "transform": "./GenerateOutputPort#outputHeaders"
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
