PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Read MSG File

Reads an Outlook .msg email file: subject, body, sender, recipients and attachments.

Read MSG File opens an Outlook .msg file (an email saved from Outlook) and gives you its subject, its body, its metadata and its attachments. Use it when users upload saved emails, or when a mailbox forwards emails as .msg attachments.

Add the action

In the Process Designer toolbox, open Documents and pick Read MSG File (or type Read MSG File in the search box).

The Read MSG File action properties: Message File, Subject, Body, Metadata and Attachments

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Message FileInputFileYesThe .msg file to read.
SubjectOutputTextNoThe email subject.
BodyOutputTextNoThe email body as plain text.
MetadataOutputObject (JSON)NoSender, recipients, date and other details (see below).
AttachmentsOutputList of FileNoThe files attached to the email. Empty when there are none.

What Metadata contains

KeyWhat it holds
senderAn object with email and displayName.
recipientsA list of objects with email and displayName, one per recipient.
recipientsToThe To recipients as one text.
recipientsCcThe Cc recipients as one text.
sentOnWhen the email was sent, with its time zone offset.
receivedOnCurrently the same value as sentOn (see Good to know).
topicThe conversation topic.
importanceThe importance flag, for example Normal.
sizeThe size of the message, when the file records it (it can be empty).

Example

A saved email with three attachments (two images and a PDF) โ†’ Subject and Body hold the email text, Metadata holds the keys above, and Attachments is a list of three files: two image/png files and one application/pdf file.

CaseResult
A file named hello.txtThe step fails: "Input file extension should be '.msg', found => .txt"

Good to know

  • The file name must end in .msg. An .eml file is not supported.
  • Body is the plain-text body. Formatting is not kept.
  • receivedOn currently repeats sentOn. Do not rely on it for the time the email arrived.
  • Use a For Each to work with the attachments one by one.

On this page