Skip to main content
All CollectionsIntegrationsAPI
Workspace API example: Activity Feed and email notifications 
Workspace API example: Activity Feed and email notifications 
Updated over a week ago

Introduction

It is possible to receive extra notifications on, for example, receiving emails from your manager, emails which contain certain topics or maybe notifications about high priority emails. In this article, we demonstrate how to create a new activity from scratch using the Workspace 365 Activity Feed API.

Prerequisites

  • You can easily create these notifications using Microsoft Power Automate.

  • An API key can be created in the Workspace settings under "Integrations" > "API settings".

Receive activity notification when receiving email from X

  1. For this, we use Microsoft Power Automate.

  2. The first step is to connect Outlook and use a trigger on a new email event. You can choose to select a certain folder which the email is delivered. In this case we choose the Inbox.​​

    email_1.png

  3. Add New action, Control. Here you will specify what will happen if a certain condition is met.​

    email_2.png
    email_3.png

  4. Within this condition we want to check if the email that is being received contains certain words (e.g. 'leave requests'), phrases or if it is from a certain person. In this example we check if we have received emails from Sarah.​

    email_4.png

  5. You can use dynamic values from the previous steps. So, we can select the body from step 1 "On new email". In this case we will perform the next actions, but only if the conditions are met.

  6. Here, you will have to use the Activity Feed API endpoint (see example request). The schemas state which properties are optional and which are required to fill in the body.

    email_5.png

  7. Now you can save and test the above to check whether the activity has been successfully created in the Workspace.

Did this answer your question?