MSGraph Email Poller

Overview

Need to poll emails from your Exchange server? This smart service can be used in a poller process and extract the data from the Microsoft Exchange server. Messages are stored in the Appian Document System, as well as the attachments. Meta data is stored in a database table for further processing.

This plug-in provides an alternative to sending emails to an Appian process model when inbound email integration is requested. Instead of the email being forwarded to Appian, this plug-in reads the emails directly from the Exchange mailbox using the MS Graph API as described below:

  • Reads the mailbox using the MS Graph API
  • Convert the email to an EML file stored as an Appian document; Item attachments (calendar invites, messages) are kept in the eml file, File attachments removed from it and stored separately in the document management system.
  • Store all email file attachments as separate Appian documents
  • Store all email metadata (subject, author, recipients, etc...) into a set of tables in the database

Key Features & Functionality

All information how to deploy, configure and use the smart service is in the 'MS Graph Mail Poller.pdf' document in the downloaded zip. Extract the files in the ZIP and follow the instructions in the document.

Anonymous
Parents
  • We are utilizing this plugin across our Dev, Test and Prod environments. We have configuration set to move processed emails into a "Processed" folder.  This works as expected in our Dev and Test environments but in our Prod environment it does not move processed items into the "Processed" folder but moves them to "Deleted Items" folder instead.  All other processing of the emails appears to behave normally. We verified the configuration, naming and security on the "Processed" folder and find no differences.

    What could be possible reasons that the emails would be moved to "Deleted Items" instead of the "Processed" folder specified in the configuration? Thanks.

Comment
  • We are utilizing this plugin across our Dev, Test and Prod environments. We have configuration set to move processed emails into a "Processed" folder.  This works as expected in our Dev and Test environments but in our Prod environment it does not move processed items into the "Processed" folder but moves them to "Deleted Items" folder instead.  All other processing of the emails appears to behave normally. We verified the configuration, naming and security on the "Processed" folder and find no differences.

    What could be possible reasons that the emails would be moved to "Deleted Items" instead of the "Processed" folder specified in the configuration? Thanks.

Children
  • The only reason can be that the plugin has no access to the Exchange folder name within the Inbox. When it cannot find it, it will move the items to the Deleted Items instead.

    Please validate again the naming is identical. You might be able to find more info in the application log.

    If you require more debugging info from the mailpoller, add the line 

    log4j.logger.com.appiancorp.ps.msgraphmail=DEBUG

    to your deployment/web.war/WEB-INF/resources/log4j.properties

    This will provide all debug info in the application log. Make sure to remove it again once you have found the issue.