Operating Principle
The Exchange Mail Watcher monitors a mailbox and reads all emails (if the condition applies) of the mailbox in an interval which can be configured over the Timer event. A workflow is started for every new email. In the workflow, several values are provided, depending on the mapping of the workflow. If the email has been processed, it is either deleted, moved to the recycle bin, or marked as read, which depends on the configured modus to process the email. If the mode of processing changes from marked as read to delete, all emails marked as read will be processed and deleted again.
Configuration
To configure the exchange mail watcher, you first need to set a Timer event as Start event. In the timer event configuration, you can now select the ExchangeMailWatcher under the Custom Check Routine. The Event type doesn't have to be configured as the mail watcher monitors all emails in the mailbox anyway.
After that, configure the input parameters. Click the Routine parameter button to configure the connection. The conditions as well as the Operation mode can be set in the Configuration data tab. To the configuration, click OK.
The last thing you need to configure is the output. Before you get to the dialog with the Return value binding button, you need to select a business entity where the output values should be stored. In the dialog, you only have to map the fields and confirm with the OK button.
Parameters
Required Parameters
EWS-URL: This is the URL you need to reach the exchange web service (EWS URL for Office 365: https://outlook.office365.com/EWS/Exchange.asmx).
User: The user who is used to access the exchange mailbox.
Password: This is the password of the user mentioned above.
Mailbox: This consists of the mailbox which should be monitored. The user who is declared in the EWSUser requires permissions to that mailbox.
Optional Parameter
Domain: Contains the domain which should be used.
Exchange Version
This is the version of the Exchange Server. Possible values are 2007, 2010, 2013. If there is no value assigned, 2007 will be used as default.
Operation Mode
With this parameter, you can set the mode to process the emails. There are several values which can be used:
- Mark unread mails as read
- Move mails to recycle bin
- Permanently delete mails
If you check the Use proxy settings box, you can configure the connection via a proxy server.