The Microsoft 365 Outlook Web email event trigger enables you to automate tasks based on the events that occur in a Microsoft 365 Outlook mailbox. The event trigger listens for specific events that occur in the Microsoft 365 Outlook mailbox and starts the downstream actions when the events occur.
Overview
The Microsoft 365 Outlook Web email event trigger enables you to create triggers based on email events. You can use the triggers to trigger workflows as soon as the event occurs in Microsoft 365 Outlook mailbox, reducing the manual monitoring and response time for critical communication.
Authentication
The Microsoft 365 Outlook Web email event triggers use OAuth to authenticate the connection to the Microsoft 365 Outlook account. See Create OAuth connection for more information about OAuth connections.
Microsoft 365 Outlook Web email event triggers also use certificates to authenticate the Microsoft account subscription and decrypt the incoming data from the Microsoft servers. Log in to your Microsoft Azure portal and create a certificate. For more information on creating certificates in the Microsoft Azure portal, see Certificate creation methods in the Microsoft Learn portal.
Ensure that you add the created certificate in the Credential Vault. Do the following to add the certificate data to the Credential Vault:
- Open the certificate file in any text editor.
- Copy the entire contents of the certificate file.
- Log in to the Control Room as an administrator.
- Follow steps 2 to 5 in Create credential.
- In step 6, select the Standard input option and paste the certificate contents in the Value field.
- Click Create credential to save the certificate data in the Credential Vault.
Prerequisites
Ensure that the following prerequisites are met:
- A Bot Creator or Citizen Developer license.
- EVENT TRIGGERS and View my bots permissions.
- Check in and Check out permission on the folders in which the automation is located.
- An active OAuth connection for the Microsoft 365 account.
- A Microsoft Azure certificate.
Supported events
The Microsoft 365 Outlook Web email event trigger supports the following events:
| Events | Description |
|---|---|
| When new email arrives | When the inbox receives a new email. |
| When an email updated | When an update is made to an email in the inbox. |
| When an email deleted | When the user deletes an email from the inbox. |
Settings
The following settings are available for Microsoft 365 Outlook Web email event trigger:
- Listen to event
- Specifies the email events to subscribe. You can select one or more events
from the following options:
- When new email arrives
- When an email updated
- When an email deleted
- Email address
- Specifies the email address of the mailbox that must be monitored.
- Monitor mail folder
- Specifies the folder name in the mailbox that must be monitored. You can monitor the inbox or any nested folders within the inbox. Enter inbox to monitor the inbox and enter the folder name in standard filepath format for nested folders. For example, enter inbox/work to monitor the work folder within the inbox.
- Control room OAuth connection
- Specifies the OAuth connection to connect and authenticate the automation session. Use the Pick option, and follow the prompts in the Pick an OAuth connection modal to select the OAuth connection for the Microsoft 365 Outlook account. For more information about configuring an OAuth connection, see Create OAuth connection.
- Certificate
- Specifies the Microsoft Azure certificate for authenticating the connection
and encrypting-decrypting the data. Use one of the following options
- Credential: Use the Choose option and follow the prompts in the Pick a credential modal to select the Microsoft Azure certificate saved in the Credential Vault.
- Insecure string: Use the Insecure string option to enter the content of the certificate file directly in the input field. Entering the certificate contents in insecure field exposes the certificate.
- Filter criteria (optional)
- Specifies the filter criteria for the trigger. You can use the Query option to enter a Microsoft Graph API query-based filter or use the Condition to define a new condition using the condition builder.
- Query
- Specifies the filter criteria using the Microsoft Graph API query filters. For more information about Microsoft Graph API query filters, see Using filter query parameter in Microsoft Graph.
- Condition
- Specifies a new condition using the condition builder with
And and Or operators.
Select the appropriate operator and click Add
Condition.. Follow the prompts in the Add
Condition modal to configure the condition with the selected
operator. The following condition types are supported:
- From: Use this option to configure a condition based on the email address of the sender.
- With attachments: Use this option to configure a condition based on the availability of an attachment in the mails.
- Importance: Use this option to configure a condition based on the priority level set in the attachment. You can set the condition as High for mails marked with High Importance, Low for mails marked with Low Importance, or Normal for mails without any priority.
- Subject: Use this option to configure a condition based on the subject of the mail. You can use one of Equals to, Contains, or Starts with condition and enter an appropriate string in the Subject field.
- Flag status: Use this option to configure a condition based on the flag set for the emails. You can use Flagged option for emails that have any flag set, or Completed option for the mails that have the Completed flag set.
- Response
- Specifies the variables to store the response data. The trigger saves the
response data in a key-value pair format and you can use this data in
downstream actions within the session. Once the bot finishes running, the
trigger logs the reponse data as Bot run by trigger event type
in the Audit log. You can use one of the following
options:
- Multiple variables: Create and specify
individual variables to store specific response data.
Use the Add variable mapping option to specify the key and corresponding variable type to store the specific response data.
- Record: Create and specify a record variable to store the entire response data.
- Multiple variables: Create and specify
individual variables to store specific response data.