The GET_MAIL action retrieves an email message and its attachments from Microsoft Email services. The action can store the email as a parsed message with separate attachments or as a single raw .eml
Use this action when workflows need to access email content, process attachments, archive messages, or perform downstream document-processing activities.
During the operation, the connector authenticates with Microsoft Graph. The specified message is retrieved using the message identifier and its content is processed. The message is stored either as parsed content or a raw .eml file. Attachments are extracted when parsed mode is used. Finally, the references to the stored content are returned to the workflow.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| messageId | String | Required | Identifier of the email message to retrieve. The value can be mapped from a workflow variable. It can be mapped to a variable, for more details see Mapping Process Variables for Microsoft Email Connector. |
| saveRaw | Boolean | Optional | When set to true, the message and its attachments are saved together as a raw .eml file. By default, the email body and attachments are stored separately in the content repository. |
| targetContainer | Content | Required | Content object representing the repository location where the email content will be stored. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| attachments | Array<content> | Optional | References to the email attachments. Available only when the email is retrieved in parsed mode. |
| message | Content | Optional | Reference to the email body or the raw .eml file, depending on the selected retrieval mode. |