2021.2

Table Of Contents
Input
The Microsoft 365 Email Input task captures an email and its attachments from the selected
inbox when it corresponds to the rules defined in the General tab.
It will process one email at a time (unless the process is self-replicating; see "Process
properties" on page868) and it will capture the emails as long as there is unread email in the
selected inbox.
Processing
The task accesses Inbox folders in the organization through the Microsoft Graph API (subject to
that organization's IT policies) .
Filtering is done at the mail server. Only the first unread email matching the conditions is
retrieved from the mail server, along with its attachments. Captured emails can either be
deleted or marked as read.
Note
The MS Graph REST API is limited to a certain number of requests within a certain
period of time. This is called throttling. When throttling comes into play, the plugin
receives HTTP response 429. The plugin will log the error and retry, but it exits with an
error after 15 unsuccessful attempts.
Output
Once the plugin is done processing, an XML file is created with the email’s details and location
of the body and any attachments. The encoding of the XML file is UTF-8.
The body and attachments are located in the job's Temp folder of Workflow. Within the same
process, those files must be moved to another location, otherwise they will be deleted at the
end of the process (as expected for all files in Workflow's Temp folder).
Retrieving and moving the body and attachment files may be done using an "XML Splitter" on
page469.
Example output file
<?xml version="1.0"?>
<Email>
<FromName>Anny One</FromName>
<FromEmail>onea@ca.objectiflune.com</FromEmail>
Page 345