> 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.microsoft.onedrive.ExportFile

- Component: `appmixer.microsoft.onedrive.ExportFile`
- Kind: Action
- Version: 1.1.0
- Visibility: Public
- Connector: [appmixer.microsoft.onedrive 1.6.0](https://connectors.appmixer.com/connector/appmixer.microsoft.onedrive/1.6.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.microsoft.onedrive/1.6.0/component/appmixer.microsoft.onedrive.ExportFile>

Export file from Microsoft OneDrive.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| File (`file`) | onedrivepicker | Choose a file to export |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| File ID (`fileId`) | string | - |
| File Name (`fileName`) | string | - |
| Mime Type (`mimeType`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.onedrive.ExportFile",
  "author": "Jimoh Damilola <jimoh@client.io>",
  "description": "Export file from Microsoft OneDrive.",
  "version": "1.1.0",
  "dependencies": {
    "module": "1.1.0"
  },
  "private": false,
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Files.ReadWrite.All"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "isToken": {
            "type": "boolean"
          },
          "file": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          }
        },
        "oneOf": [
          {
            "required": [
              "isToken"
            ]
          },
          {
            "required": [
              "file"
            ]
          }
        ]
      },
      "inspector": {
        "inputs": {
          "file": {
            "type": "onedrivepicker",
            "index": 1,
            "label": "File",
            "placeholder": "Choose a file...",
            "tooltip": "Choose a file to export"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "File ID",
          "value": "fileId",
          "schema": {
            "type": "string",
            "example": "64f1c2e8a1b2c3d4e5f60718"
          }
        },
        {
          "label": "File Name",
          "value": "fileName",
          "schema": {
            "type": "string",
            "example": "Q3-report.pdf"
          }
        },
        {
          "label": "Mime Type",
          "value": "mimeType",
          "schema": {
            "type": "string",
            "example": "application/pdf"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
