> 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.mail.ListEmails

- Component: `appmixer.microsoft.mail.ListEmails`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.microsoft.mail 2.3.0](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.ListEmails>

Retrieves all emails from your Outlook.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list of emails, or one email item at a time or stream the email items to a file. |
| Limit (`limit`) | number | The number of results you want to retrieve. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/microsoft/mail/ListEmails?outPort=out`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.mail.ListEmails",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Retrieves all emails from your Outlook.",
  "private": false,
  "version": "1.0.1",
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Mail.Read"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "inspector": {
        "inputs": {
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 1,
            "tooltip": "Choose whether you want to receive the result set as one complete list of emails, or one email item at a time or stream the email items to a file.",
            "defaultValue": "file",
            "options": [
              {
                "label": "One at a time",
                "value": "email"
              },
              {
                "label": "All at once",
                "value": "emails"
              },
              {
                "label": "Save to file",
                "value": "file"
              }
            ]
          },
          "limit": {
            "type": "number",
            "label": "Limit",
            "index": 2,
            "min": 1,
            "tooltip": "The number of results you want to retrieve.",
            "defaultValue": 100
          }
        }
      },
      "schema": {
        "type": "object",
        "properties": {
          "outputType": {
            "type": "string"
          },
          "limit": {
            "type": "number"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/microsoft/mail/ListEmails?outPort=out",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/limit": "inputs/in/limit"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
