Skip to main content

salesforce_incident_incident_templates

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

Overview

Namesalesforce_incident_incident_templates
TypeResource
Iddatadog.integrations.salesforce_incident_incident_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Salesforce incident template. (example: 596da4af-0563-4097-90ff-07230c3f9db3)
attributesobjectSalesforce incident template attributes returned by the API.
typestringSalesforce incident template resource type. (salesforce-incidents-incident-template) (default: salesforce-incidents-incident-template, example: salesforce-incidents-incident-template)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_templatesselectGet all Salesforce incident templates configured for your organization.
create_incident_templateinsertdataCreate a new Salesforce incident template for your organization. Template<br />names must be unique within an organization.
update_incident_templateupdateincident_template_id, dataUpdate a single Salesforce incident template in your organization.
delete_incident_templatedeleteincident_template_idDelete a single Salesforce incident template from your 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
incident_template_idstringThe ID of the Salesforce incident template.
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 incident templates configured for your organization.

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

INSERT examples

Create a new Salesforce incident template for your organization. Template<br />names must be unique within an organization.

INSERT INTO datadog.integrations.salesforce_incident_incident_templates (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Update a single Salesforce incident template in your organization.

UPDATE datadog.integrations.salesforce_incident_incident_templates
SET
data = '{{ data }}'
WHERE
incident_template_id = '{{ incident_template_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a single Salesforce incident template from your organization.

DELETE FROM datadog.integrations.salesforce_incident_incident_templates
WHERE incident_template_id = '{{ incident_template_id }}' --required
;