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
-
In Teams, open the channel to send notifications to.
-
In the channel menu, click Workflows > Post to a channel when a webhook request is received.
-
Enter a name for the workflow and confirm the team and channel.
-
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()))
-
Copy the generated webhook URL.
importantTreat the webhook URL as a secret. If the URL is exposed, rotate it by deleting and recreating the workflow.
-
In the Power Automate flow settings, set Who can trigger the flow? to Anyone.
Enable Teams notifications in DataHub
-
In your DataHub service, go to the DataHub resources section.
-
Open the Aiven App that ends in
-actions. -
In the Environment variables section, click Edit.
-
On the Secrets tab, add the following secret:
Key Value DATAHUB_ACTIONS_TEAMS_WEBHOOK_URLThe generated webhook URL. -
On the Variables tab, add the following variables:
Key Value DATAHUB_ACTIONS_TEAMS_ENABLEDtrueDATAHUB_ACTIONS_TEAMS_DATAHUB_BASE_URLThe DataHub Application URL from the Connection information. Adds links in messages. Defaults to http://localhost:9002. -
Click Save.
After setting the variables, the actions app restarts automatically.
Related pages