On Azure Email Received
Get the new mail in the specified mailbox
Description
Triggers a control flow when new emails are received into the mailbox.
This brick requires the following parameters (these can be set in the Service App running the brick):
"azure": {
"oauth2": {
"host": "<azure.oauth2.host>",
"appId": "<azure.oauth2.appid>",
"clientId": "<azure.oauth2.clientid>",
"clientSecret": "<azure.oauth2.clientsecret>",
"graphAPI": "<azure.oauth2.graphapi>"
}
}
The host is the URL to authenticates to, typically https://login.microsoftonline.com/
.
The appId, clientId & clientSecrets come from the app configuration in the Azure Portal.
The graphAPI is the API to query, typically https://graph.microsoft.com/
Inputs
- persist mail (Boolean): By default the mail is only stored in local memory; If set to
true
, emails are persisted in the database. - enabled (Boolean): If
true
, the brick will check for new mails. (It can typically be useful to disable checks on some environments). - poll rate (s) (Number): The number of seconds between two email checks
- email address (String): The mail address to be monitored
Outputs
- Control Flow (Control Flow): Triggered when new emails are received
- emails (List): The set of emails received since the last check
- Error Flow (Error Flow): Triggered if an error occured