# List Folder Messages

> Perform List Folder Messages through Outlook.

Source: [https://genhealth.ai/docs/workflows/integrations/outlook/outlook_list_folder_messages](https://genhealth.ai/docs/workflows/integrations/outlook/outlook_list_folder_messages)

Integration: [Outlook](https://genhealth.ai/docs/workflows/integrations/outlook.md)

- Handler: `outlook_list_folder_messages`

- Connection type: `microsoft_outlook`

## Inputs

- `folder` — Folder (text)
  Optional text value.
  Default: `"inbox"`
- `unread_only` — Unread Only (boolean)
  Optional true-or-false value.
  Default: `false`
- `since` — Since (text)
  Optional text value.
- `since_days` — Since Days (number)
  Optional numeric value.
- `limit` — Limit (number)
  Optional numeric value.
  Default: `25`
- `oldest_first` — Oldest First (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `messages` — Messages
- `message_ids` — Message Ids
- `count` — Count
- `folder_id` — Folder Id
- `more_available` — More Available
- `error` — Error
- `error_message` — Error Message
- `error_code` — Error Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "number",
      "default": 25,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "since": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "folder": {
      "type": "string",
      "default": "inbox",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "since_days": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "unread_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "oldest_first": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "messages": {},
    "folder_id": {},
    "error_code": {},
    "message_ids": {},
    "error_message": {},
    "more_available": {}
  },
  "additionalProperties": true
}
```
