FlowmageDocs

Get message

BetaReads data

Reads one email from a Microsoft 365 mailbox, its body included.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
MailboxRequiredThe mailbox this node works in — a user's sign-in address, or their object id. Your app needs Mail.Read for it.
Message idRequiredThe id a list of messages answered, as Graph gave it.
FieldsComma-separated property names. Leave empty for every property.
Body format"" or "text" or "html"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
mailboxtext
messageIdtext
selecttext, by default "id,subject,from,toRecipients,receivedDateTime,isRead,body"
bodyFormat"" or "text" or "html"

Output

FieldType
messageobject
message.idstring
message.subjectstring
Sample output, and the expression for each field
  • message
    • id"1"
    • subject"Hi"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "bodyFormat": "",
    "connection": "<connection id>",
    "mailbox": "<mailbox>",
    "messageId": "<message id>",
    "select": "id,subject,from,toRecipients,receivedDateTime,isRead,body"
  },
  "label": "Get message",
  "type": "graph.getMessage",
  "version": 1
}