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

- Component: `appmixer.microsoft.mail.GetEmail`
- Kind: Action
- Version: 1.0.0
- 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.GetEmail>

Retrieves an email from your Outlook.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Message ID (`messageId`) | text | The Message ID you want to retrieve. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Odata Etag (`@odata.etag`) | string | - |
| Id (`id`) | string | - |
| Created Date Time (`createdDateTime`) | string | - |
| Last Modified Date Time (`lastModifiedDateTime`) | string | - |
| Change Key (`changeKey`) | string | - |
| Categories (`categories`) | array | - |
| Received Date Time (`receivedDateTime`) | string | - |
| Sent Date Time (`sentDateTime`) | string | - |
| Has Attachments (`hasAttachments`) | boolean | - |
| Internet Message Id (`internetMessageId`) | string | - |
| Subject (`subject`) | string | - |
| Body Preview (`bodyPreview`) | string | - |
| Importance (`importance`) | string | - |
| Parent Folder Id (`parentFolderId`) | string | - |
| Conversation Id (`conversationId`) | string | - |
| Conversation Index (`conversationIndex`) | string | - |
| Is Delivery Receipt Requested (`isDeliveryReceiptRequested`) | boolean,null | - |
| Is Read Receipt Requested (`isReadReceiptRequested`) | boolean | - |
| Is Read (`isRead`) | boolean | - |
| Is Draft (`isDraft`) | boolean | - |
| Web Link (`webLink`) | string | - |
| Inference Classification (`inferenceClassification`) | string | - |
| Body Content Type (`body.contentType`) | string | - |
| Body Content (`body.content`) | string | - |
| To Recipients (`toRecipients`) | array | - |
| Cc Recipients (`ccRecipients`) | array | - |
| Bcc Recipients (`bccRecipients`) | array | - |
| Reply To (`replyTo`) | array | - |
| Flag Flag Status (`flag.flagStatus`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.mail.GetEmail",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Retrieves an email from your Outlook.",
  "private": false,
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Mail.Read"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "inspector": {
        "inputs": {
          "messageId": {
            "type": "text",
            "label": "Message ID",
            "index": 1,
            "tooltip": "The Message ID you want to retrieve."
          }
        }
      },
      "schema": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          }
        },
        "required": [
          "messageId"
        ]
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Odata Etag",
          "value": "@odata.etag",
          "schema": {
            "type": "string",
            "example": "W/\"CQAAABYAAAC1gzg_vZ4JR4sATa1T8sDwAA\""
          }
        },
        {
          "label": "Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "AAMkAGI1AAAoZCfHAAA="
          }
        },
        {
          "label": "Created Date Time",
          "value": "createdDateTime",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00Z"
          }
        },
        {
          "label": "Last Modified Date Time",
          "value": "lastModifiedDateTime",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:31:00Z"
          }
        },
        {
          "label": "Change Key",
          "value": "changeKey",
          "schema": {
            "type": "string",
            "example": "CQAAABYAAAC1gzg_vZ4JR4sATa1T8sDwAA"
          }
        },
        {
          "label": "Categories",
          "value": "categories",
          "schema": {
            "type": "array",
            "example": [
              "Blue category"
            ]
          }
        },
        {
          "label": "Received Date Time",
          "value": "receivedDateTime",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00Z"
          }
        },
        {
          "label": "Sent Date Time",
          "value": "sentDateTime",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:29:58Z"
          }
        },
        {
          "label": "Has Attachments",
          "value": "hasAttachments",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Internet Message Id",
          "value": "internetMessageId",
          "schema": {
            "type": "string",
            "example": "<MWHPR13MB0302_AAMkAGI@MWHPR13MB0302.namprd13.prod.outlook.com>"
          }
        },
        {
          "label": "Subject",
          "value": "subject",
          "schema": {
            "type": "string",
            "example": "Q1 Planning Meeting Notes"
          }
        },
        {
          "label": "Body Preview",
          "value": "bodyPreview",
          "schema": {
            "type": "string",
            "example": "Hi team, here are the notes from today's planning meeting."
          }
        },
        {
          "label": "Importance",
          "value": "importance",
          "schema": {
            "type": "string",
            "example": "normal"
          }
        },
        {
          "label": "Parent Folder Id",
          "value": "parentFolderId",
          "schema": {
            "type": "string",
            "example": "AQMkADAwATM0MDAAMS1iNTcwLWI2NTEtMDACLTAwCgAuAAAD"
          }
        },
        {
          "label": "Conversation Id",
          "value": "conversationId",
          "schema": {
            "type": "string",
            "example": "AAQkAGI1AABScCfHAAA="
          }
        },
        {
          "label": "Conversation Index",
          "value": "conversationIndex",
          "schema": {
            "type": "string",
            "example": "AQHRhkZLzFEOKS1waBcV7Q=="
          }
        },
        {
          "label": "Is Delivery Receipt Requested",
          "value": "isDeliveryReceiptRequested",
          "schema": {
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          }
        },
        {
          "label": "Is Read Receipt Requested",
          "value": "isReadReceiptRequested",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Is Read",
          "value": "isRead",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Is Draft",
          "value": "isDraft",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Web Link",
          "value": "webLink",
          "schema": {
            "type": "string",
            "example": "https://outlook.office365.com/owa/?ItemID=AAMkAGI1AAAoZCfHAAA%3D&exvsurl=1&viewmodel=ReadMessageItem"
          }
        },
        {
          "label": "Inference Classification",
          "value": "inferenceClassification",
          "schema": {
            "type": "string",
            "example": "focused"
          }
        },
        {
          "label": "Body Content Type",
          "value": "body.contentType",
          "schema": {
            "type": "string",
            "example": "html"
          }
        },
        {
          "label": "Body Content",
          "value": "body.content",
          "schema": {
            "type": "string",
            "example": "<html><body><p>Hi team, here are the notes from today's planning meeting.</p></body></html>"
          }
        },
        {
          "label": "To Recipients",
          "value": "toRecipients",
          "schema": {
            "type": "array",
            "example": [
              {
                "emailAddress": {
                  "name": "Jane Doe",
                  "address": "jane.doe@example.com"
                }
              }
            ]
          }
        },
        {
          "label": "Cc Recipients",
          "value": "ccRecipients",
          "schema": {
            "type": "array",
            "example": []
          }
        },
        {
          "label": "Bcc Recipients",
          "value": "bccRecipients",
          "schema": {
            "type": "array",
            "example": []
          }
        },
        {
          "label": "Reply To",
          "value": "replyTo",
          "schema": {
            "type": "array",
            "example": []
          }
        },
        {
          "label": "Flag Flag Status",
          "value": "flag.flagStatus",
          "schema": {
            "type": "string",
            "example": "notFlagged"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
