Skip to main content

Configure Teams notifications for DataHub activity Limited availability

Get activity notifications for your DataHub service in a Microsoft Teams channel, including new datasets, ownership changes, tags, and glossary updates.

You can enable Teams notifications by creating a Power Automate flow in Teams and setting environment variables on the actions app.

Prerequisites

  • A Microsoft Teams team and channel where you can add workflows.
  • Permission to create and manage Power Automate flows in that team.

Create a workflow in Teams

  1. In Teams, open the channel to send notifications to.

  2. In the channel menu, click Workflows > Post to a channel when a webhook request is received.

  3. Enter a name for the workflow and confirm the team and channel.

  4. Open the workflow and configure it:

    • Trigger: When a Teams webhook request is received
    • Action: Post message in a chat or channel
    • Message body expression: coalesce(triggerBody()?['text'], string(triggerBody()))
  5. Copy the generated webhook URL.

    important

    Treat the webhook URL as a secret. If the URL is exposed, rotate it by deleting and recreating the workflow.

  6. In the Power Automate flow settings, set Who can trigger the flow? to Anyone.

Enable Teams notifications in DataHub

  1. In your DataHub service, go to the DataHub resources section.

  2. Open the Aiven App that ends in -actions.

  3. In the Environment variables section, click Edit.

  4. On the Secrets tab, add the following secret:

    KeyValue
    DATAHUB_ACTIONS_TEAMS_WEBHOOK_URLThe generated webhook URL.
  5. On the Variables tab, add the following variables:

    KeyValue
    DATAHUB_ACTIONS_TEAMS_ENABLEDtrue
    DATAHUB_ACTIONS_TEAMS_DATAHUB_BASE_URLThe DataHub Application URL from the Connection information. Adds links in messages. Defaults to http://localhost:9002.
  6. Click Save.

After setting the variables, the actions app restarts automatically.

Related pages