2022.2

Table Of Contents
Mail.Read permission; the Mail.ReadBasic permission is insufficient as it does not grant access to the
email’s body or attachments.
For more information on setting application permissions for Microsoft Graph, see https://-
docs.microsoft.com/en-us/graph/auth-v2-service.
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
page724) 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 unsuc-
cessful 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
page417.
Example output file
<?xml version="1.0"?>
<Email>
<FromName>Anny One</FromName>
<FromEmail>onea@ca.objectiflune.com</FromEmail>
<Subject>Your Subscription</Subject>
<DateTime>2020-01-22T14:03:38Z</DateTime>
<To>someone@ca.yourcompany.com</To>
Page 321