Skip to main content

salesforce_incident_organizations

Creates, updates, deletes, gets or lists a salesforce_incident_organizations resource.

Overview

Namesalesforce_incident_organizations
TypeResource
Iddatadog.integrations.salesforce_incident_organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe Datadog-assigned ID of the connected Salesforce organization. (example: 596da4af-0563-4097-90ff-07230c3f9db3)
attributesobjectAttributes of a Salesforce organization connected to the Datadog Salesforce integration.
typestringSalesforce organization resource type. (salesforce-incidents-org) (default: salesforce-incidents-org, example: salesforce-incidents-org)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_salesforce_organizationsselectGet all Salesforce organizations connected to your Datadog organization<br />through the Salesforce integration. Salesforce organizations are connected<br />through the OAuth setup flow in the Datadog Salesforce integration page.
delete_salesforce_organizationdeletesalesforce_org_idDisconnect a Salesforce organization from your Datadog organization.<br />This also deletes any incident templates referencing the organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
salesforce_org_idstringThe Datadog-assigned ID of the connected Salesforce organization.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get all Salesforce organizations connected to your Datadog organization<br />through the Salesforce integration. Salesforce organizations are connected<br />through the OAuth setup flow in the Datadog Salesforce integration page.

SELECT
id,
attributes,
type
FROM datadog.integrations.salesforce_incident_organizations
;

DELETE examples

Disconnect a Salesforce organization from your Datadog organization.<br />This also deletes any incident templates referencing the organization.

DELETE FROM datadog.integrations.salesforce_incident_organizations
WHERE salesforce_org_id = '{{ salesforce_org_id }}' --required
;