---
title: Salesforce Incidents
description: Create and manage Salesforce Service Cloud Incidents from Datadog alerts.
breadcrumbs: Docs > Integrations > Salesforce Incidents
---

# Salesforce Incidents

## Overview{% #overview %}

The Salesforce Incidents integration allows you to create incidents in Salesforce Service Cloud from monitor alert events. Using the Salesforce Datadog Widget, you can view the timeline of monitor events related to the incident directly in Salesforce.

## Setup{% #setup %}

### Connect Datadog to Salesforce Service Cloud{% #connect-datadog-to-salesforce-service-cloud %}

1. Go to the [Datadog Salesforce Incidents integration tile](https://app.datadoghq.com/integrations/salesforce-incidents) and click **Add Organization**.
1. Select the Organization type.
1. Click **Connect** and follow the instructions on the Salesforce Service Cloud authorization page.

### Trusted IP Ranges{% #trusted-ip-ranges %}

If your Salesforce Organization uses Trusted IP ranges to filter traffic, you need to allow connections from the **Webhooks** IP prefixes belonging to Datadog in order for the integration to work. For a list of **Webhooks** IP prefixes for your region, see [Datadog IP Ranges](https://docs.datadoghq.com/api/latest/ip-ranges.md).

### Configure an incident template{% #configure-an-incident-template %}

Templates define how incidents are created in Salesforce Service Cloud from Datadog alert events.

To create an incident template:

1. Click **New Incident Template**.
1. Enter a name for your incident template. This name, prefixed with `salesforce_incidents-`, becomes the handle you can use in your monitor notifications (such as `@salesforce_incidents-my-incident-template-name`).
1. Select a Salesforce Organization.
1. Provide a subject, description, owner, and priority to use when creating an incident.
1. Click **Save**.

### Add the Datadog Widget to Salesforce Service Cloud{% #add-the-datadog-widget-to-salesforce-service-cloud %}

To install the Datadog Widget in Salesforce Service Cloud:

1. Have an admin for your Salesforce Organization install the Datadog app from the [Salesforce AppExchange](https://appexchange.salesforce.com/).
1. In Salesforce Service Cloud, go to an Incident Record page.
1. Click on the Gear Icon and then click **Edit page**.
1. Click and drag the Datadog widget onto the page from the custom components in the left nav.
1. Click **Save**.

## Usage{% #usage %}

#### Creating incidents in Salesforce Service Cloud from Datadog Alerts{% #creating-incidents-in-salesforce-service-cloud-from-datadog-alerts %}

Include a notification handle of one or more incidents templates (for example, `@salesforce_incidents-my-incident-template-name`). in the **Notify your team** or **Say what's happening** sections of your Datadog monitor.

Incidents are created when the monitor triggers. New incidents are not created until the monitor resolves.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

The Salesforce Incidents integration does not provide any metrics.

### Events{% #events %}

The Salesforce Incidents integration does not include any events.

### Service Checks{% #service-checks %}

The Salesforce Incidents integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
