preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for new relic notification actions available in the workflow automation actions catalog. These actions enable you to send notifications through new relic.
Prerequisites
Before using New Relic actions in workflow automation, ensure you have:
- A New Relic account with appropriate permissions.
- A New Relic license key (if sending data to a different account).
- The necessary permissions for the specific New Relic services you plan to use.
See License Key for information on how to create and manage your New Relic Account License Key.
Notifications actions
Send messages or emails to New Relic destinations. The user must first create the appropriate destination within New Relic. Once created, the same destination should be used in this action to send the message from a workflow.
Input | Optionality | Type | Description | Example |
|---|---|---|---|---|
type | Required | String | Type of newrelic destination |
|
destinationId | Required | String | DestinationId associated with the newrelic destination. Refer to NerdGraph tutorial: Alerts destinations on how to configure a new destination and listing destination Id. Refer to Destinations to know more about destinations. |
|
parameters | Required | Map | Fields required to send notification to chosen destination type.
|
or
|
attachments | Optional | List | A list of optional attachment | |
attachment.type | Required | Enum | One of: | |
attachment.query | Optional | String | For |
|
attachment.accountIds | Optional | List | For |
|
attachment.format | Optional | Enum | For |
|
attachment.content | Optional | String | For |
|
attachment.filename | Optional | String | A filename for the attachment. |
|
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output | Type | Example |
|---|---|---|
sessionId | String |
|
errorMessage | String |
|
attachments | List | |
sessionId | String |
|
Important
Attachments are not currently supported when sending messages to a Slack destination through this workflow action.
Slack
name: slack_notification_workflowdescription: This is a test workflow to test slack notification send actionsteps:
- name: SendMessageUsingSlackChannel
type: action
action: newrelic.notification.send
version: 1
inputs:
type: slack
destinationId: ccd0d926-ed6f-4ddd-bc7d-b7ea9822908d
parameters:
text: Hi , Testing notifcation api using slack channel name
channel: test-channel-workflow
- Emailname: emailer-workflowdescription: send email using workflowsteps:
- name: emailReport1
type: action
action: newrelic.notification.email
version: 1
inputs:
type: email
destinationId: "e7a5a004-424d-44db-a3df-266980a90242"
parameters:
subject: "workflow notification"
message: "this is a message."
attachments:
- type: QUERY query: "SELECT * FROM Log" format: CSV filename: "log_count.csv" selectors:
- name: success expression: '.success'
- name: sessionId expression: '.response.sessionId'
- name: attachments expression: '.response.attachments'
Sends a message to a MS team channel, integrated with destinations.
Input Field | Optionality | Datatype | Description | Example |
|---|---|---|---|---|
destinationId | Required | String | DestinationId associated with the newrelic destination. Refer New Relic integration for Microsoft Teams for steps on how to configure a new destination and listing destination Id. Refer Destinations to know more about destinations. |
|
teamName | Required | String | Team name associated with given destination id |
|
channelName | Required | String | Channel name where message need to be sent |
|
message | Required | String | Text message which need to be sent |
|
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output Field | Type | Example |
|---|---|---|
success | Boolean |
|
sessionId | String |
|
errorMessage | String |
|
Workflow example |
|---|
|
Sends a email to NewRelic email destinations with or without attachments
Input field | Optionality | Datatype | Description | Example |
|---|---|---|---|---|
destinationId | Required | String | DestinationId associated with the newrelic destination. Refer New Relic integration for Microsoft Teams for steps on how to configure a new destination and listing destination Id. Refer Destinations to know more about destinations. |
|
subject | Required | String | Subject of email |
|
message | Required | String | Message which need to be send in email |
|
attachments | Optional | List | A list of optional attachment | |
attachment.type | Required | Enum | One of: | |
attachment.query | Optional | String | For |
|
attachment.accountIds | Optional | List | For |
|
attachment.format | Optional | Enum | For |
|
attachment.content | Optional | String | For |
|
attachment.filename | Optional | String | A filename for the attachment |
|
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output Field | Type | Example |
|---|---|---|
success | Boolean |
|
sessionId | String |
|
errorMessage | String |
|
attachments | List | |
Workflow example |
|---|
|
Sends a slack message to a channel, integrated with destinations .
Input Field | Optionality | Datatype | Description | Example |
|---|---|---|---|---|
destinationId | Required | String | DestinationId associated with the newrelic destination. Refer NerdGraph tutorial: Alerts destinations for steps on how to configure a new destination and listing destination Id. Refer Destinations to know more about destinations. |
|
text | Required | String | Text message which need to be sent | Hello ! this message from Workflow |
channel | Required | String | Channel name where message will be sent | help-nomad |
selectors | Optional | List | The selectors to get the only specified parameters as output. |
|
Output Field | Type | Example |
|---|---|---|
success | Boolean |
|
sessionId | String |
|
errorMessage | String |
|
Workflow example |
|---|
|
Runs a workflow through the NerdGraph API.
Input Field | Optionality | Datatype | Description |
|---|---|---|---|
definitionName | Required | String | Name of the workflow definition. |
definitionScopeType | Optional | String | Scope type of the workflow definition. Scope type must be either |
definitionVersion | Optional | Int | Version of the workflow definition |
idempotencyKey | Optional | String | Unique identifier to ensure idempotency of the request. It should be a UUID. |
workflowInputs | Optional | List | Version of the workflow definition |
runScopeType | Required | String | Scope type of the workflow. Scope type must be |
runScopeId | Required | String | Scope id of the workflow. Scope type must be accountId for now. |
selectors | Optional | List | The selectors to get the only specified parameters as output. |
Example
steps: - name: startHealthyHeartbeat type: action action: newrelic.workflowAutomation.startWorkflowRun version: 1 inputs: definitionName: "heartbeat_newrelicIngestSendEvents_10062025" definitionVersion: 1 scopeType: "ACCOUNT" definitionScopeType: "d34568b7-ee0b-4191-b663-7b2925b0de5b" workflowInputs: - key: "cellName" value: "stg-joint-effort" runScopeType: "ACCOUNT" runScopeId: "11544325"Output Field | Type | Example |
|---|---|---|
runId | Unique identifier for the workflow run | |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|