Skip to main content

Get Messages By Id

Retrieves email messages from Office 365 Outlook by message ID.

Category: Microsoft Office 365 & OneDrive · Group: Office 365 · Activity name: GetMessagesById

The GetMessagesById activity in the designer

Example​

outputVariable = GetMessagesById(messageId="<messageId>", includeAttachments=True)

Inputs​

NameTypeRequiredDefaultDescription
Message Idstring
Include AttachmentsbooleanDownload the file attachments and save them on local temp drive. The path is available through 'Extended Result'

Outputs​

NameTypeDescription
outputVariablejsonSpecifies the name of the variable that will store the value of the JSON returned by the activity. It has the following structure: { "Subject": string, "BodyPreview": string, "BodyContent": string, "HasAttachments": bool, "Attachments": string[] }