# Notify me on Slack when an important Outlook Email is received

> **Summary**: When an important Outlook Email is received, notify me through a message in Slack.

**Summary**: When an important Outlook Email is received, notify me through a message in Slack.

**Applications**: Outlook Mail, Slack

**Description**: This example explains how to create a workflow that automatically sends you a message in Slack when an important email is received in Outlook. This example presents Microsoft 365 activities, such as the [Email Received](https://docs.uipath.com/activities/other/latest/productivity/office365-trigger-new-email-received) trigger, and Slack activities, such as [Send message to user](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-slack-send-message-to-user).

## Workflow

1. Open Studio Web and create a new project.
2. For **How to start the automation** select **Event based**, then select the Microsoft 365 [Email Received](https://docs.uipath.com/activities/other/latest/productivity/office365-trigger-new-email-received) trigger activity.
3. In the trigger activity:
   * Set up your Microsoft OneDrive & SharePoint connection.
   * Set the **Email folder** field by selecting one of your Outlook folders.
   * Set up other additional fields, such as **With attachments only** or **Mark as read**, depending on your needs
   * Set up an additional filter to identify important emails. Set the Filter builder as: `Importance equals High`.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-299618-3a4dafef.webp)

4. Next, add a Slack [Send message to user](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-slack-send-message-to-user) activity.
   * Start by setting up your Slack connection.
   * Next, select the Slack **User** to send a message to. To receive a message yourself, select `USLACKBOT`. from the dropdown list.
   * Configure the **Message** field. For example, you can add the following text: *New email received from `ReceivedEmail.From.DisplayName` about `RecievedEmail.Subject`. Take a look at: `RecievedEmail.WebLink`*. To use variables, select the output variable of the trigger activity and drill down to its `From.DisplayName`, `Subject`, and WebLink properties.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-299622-6ffeb687.webp)
   
5. You're done and ready to run your project!
