> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Team Alerts

> Paradime Teams Alerts: Set up Microsoft Teams alerts for dbt™ projects using Paradime. Enhance communication and issue tracking.

export const Arcade = ({src, title}) => <div style={{
  position: 'relative',
  paddingBottom: 'calc(56.2225% + 41px)',
  height: 0,
  width: '100%'
}}>
    <iframe src={src} title={title} frameBorder="0" loading="lazy" allow="clipboard-write" allowFullScreen style={{
  position: 'absolute',
  top: 0,
  left: 0,
  width: '100%',
  height: '100%',
  colorScheme: 'light'
}} />
  </div>;

<Info>
  Paradime integrates natively with Elementary CLI to enable you to generate report and/or send alerts using the Bolt scheduler out of the box. **No additional installation required.**
</Info>

## Configure Microsoft Teams

### 1. Create a new team and/or channel

First, create a new Team or add a new channel to an existing team to receive the alerts. Ensure the channel's type is set to *Standard.*

### 2. Create Teams Webhook

To setup an incoming webhook in our channel:

1. Go to a channel in your Team and choose `Manage channel.`
2. Choose `Edit` connectors.
3. Search for `Incoming webhook` and choose `Add`.
4. Choose `Add` again and add name your webhook `Paradime` (or any other name you prefer).
5. *(Optional)* You can add the Paradime logo for the Bot. **Download this** **[here](https://20146536.fs1.hubspotusercontent-na1.net/hubfs/20146536/logo-no-text-light-transparent-3x.png).**

When done, click on `Create` the webhook. Now copy the URL of the webhook, you will need this later when configuring the alerts.

<Arcade src="https://demo.arcade.software/8mLJfUvsATtpy1XWakN4?embed&embed_mobile=tab&embed_desktop=inline&show_copy_link=true" title="Microsoft Teams alerts" />

## Configure a Bolt schedule with Elementary CLI

<Info>
  You can use a runtime environment variable to pass your Teams webhook to the `edr` command at runtime. Check our docs here.
</Info>

### Alert on tests and models

Configure a Bolt schedule with the `edr monitor` CLI command at the end. Ideally this should be the command after your dbt runs and tests:

```bash theme={"system"}
dbt run
dbt test
edr monitor --teams-webhook <your_teams_webhook>
```

### Alert on source freshness failures

To alert on source freshness, you will need to run `edr run-operation upload-source-freshness` right after each execution of `dbt source freshness`. This operation will upload the results to a table, and the execution of `edr monitor` will send the actual alert.

```bash theme={"system"}
dbt source freshness
edr run-operation upload-source-freshness --project-dir .
edr monitor --teams-webhook <your_teams_webhook>
```

<Info>
  **Note:**

  * `dbt source freshness` and `upload-source-freshness` needs to run from the same machine.
  * `upload-source-freshness` requires passing `--project-dir` argument.
</Info>


## Related topics

- [Microsoft Teams](/integrations/microsoft-teams.md)
- [Send Elementary alerts to MS Teams](/products/bolt/creating-schedules/templates/observability-templates/send-elementary-alerts-to-ms-teams.md)
- [Sending Alerts](/integrations/elementary-data/sending-alerts/index.md)
- [Alert Templates](/products/bolt/creating-schedules/alert-templates.md)
- [Elementary Data](/integrations/elementary-data/index.md)
