Skip to content
Draft
Prev Previous commit
Next Next commit
Updated the index
  • Loading branch information
adutta-newrelic committed Nov 21, 2025
commit 3fe23409f87ab999c4a1a0d064585807c91a271b
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
id="nerdgraph-query-get-destinationId"
title="NerdGraph Query to get destinationId"
>
```sh
{
```yaml
{
actor {
account(id: 12345678) {
aiNotifications {
Expand All @@ -186,7 +186,7 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
}
}
}
```
```
</Collapser>
</CollapserGroup>

Expand Down Expand Up @@ -265,18 +265,18 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
<tr>
<td>
```yaml
name: msTeam_notification_workflow
description: This is a test workflow to test MSTeam notification send action
steps:
- name: SendMessageUsingMSTeam
type: action
action: newrelic.notification.sendMicrosoftTeams
version: 1
inputs:
destinationId: acc24dc2-d4fc-4eba-a7b4-b3ad0170f8aa
channel: DEV_TESTING
teamName: TEST_TEAM_DEV
message: Hello from Workflow
name: msTeam_notification_workflow
description: This is a test workflow to test MSTeam notification send action
steps:
- name: SendMessageUsingMSTeam
type: action
action: newrelic.notification.sendMicrosoftTeams
version: 1
inputs:
destinationId: acc24dc2-d4fc-4eba-a7b4-b3ad0170f8aa
channel: DEV_TESTING
teamName: TEST_TEAM_DEV
message: Hello from Workflow
```
</td>
</tr>
Expand Down Expand Up @@ -489,40 +489,40 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
<tr>
<td>
```yaml
name: email_testing_with_attachment
description: Workflow to test sending an email notification via NewRelic with log step
workflowInputs:
destinationId:
type: String
steps:
- name: sendEmailNotification
type: action
action: newrelic.notification.sendEmail
version: '1'
inputs:
destinationId: ${{ .workflowInputs.destinationId }}
subject: "workflow notification"
message: "Workflow Email Notification Testing from local"
attachments:
- type: QUERY
query: "SELECT * FROM Log"
format: JSON
filename: "log_count.json"
selectors:
- name: success
expression: '.success'
- name: sessionId
expression: '.response.sessionId'
- name: attachments
expression: '.response.attachments'
- name: logOutput
type: action
action: newrelic.ingest.sendLogs
version: '1'
inputs:
logs:
- message: "Hello from cap check Testing staging server user2 : ${{ .steps.sendEmailNotification.outputs.result.attachments }}"
licenseKey: ${{ :secrets:STAGING_NEW_RELIC_LICENSE_KEY }}
name: email_testing_with_attachment
description: Workflow to test sending an email notification via NewRelic with log step
workflowInputs:
destinationId:
type: String
steps:
- name: sendEmailNotification
type: action
action: newrelic.notification.sendEmail
version: '1'
inputs:
destinationId: ${{ .workflowInputs.destinationId }}
subject: "workflow notification"
message: "Workflow Email Notification Testing from local"
attachments:
- type: QUERY
query: "SELECT * FROM Log"
format: JSON
filename: "log_count.json"
selectors:
- name: success
expression: '.success'
- name: sessionId
expression: '.response.sessionId'
- name: attachments
expression: '.response.attachments'
- name: logOutput
type: action
action: newrelic.ingest.sendLogs
version: '1'
inputs:
logs:
- message: "Hello from cap check Testing staging server user2 : ${{ .steps.sendEmailNotification.outputs.result.attachments }}"
licenseKey: ${{ :secrets:STAGING_NEW_RELIC_LICENSE_KEY }}
```
</td>
</tr>
Expand Down Expand Up @@ -580,6 +580,7 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
<p>
Refer [Destinations](/docs/alerts/get-notified/destinations/) to know more about destinations.
</p>
<CollapserGroup>
<Collapser
id="nerdGraph-Query-Get-DestinationId"
title="NerdGraph Query to get destinationId"
Expand All @@ -603,6 +604,7 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
}
```
</Collapser>
</CollapserGroup>
</td>
<td>`123e4567-e89b-12d3-a456-426614174000`</td>
</tr>
Expand Down Expand Up @@ -671,17 +673,17 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
<tr>
<td>
```yaml
name: slack_notification_workflow
description: This is a test workflow to test slack notification send action
steps:
- name: SendMessageUsingSlackChannel
type: action
action: newrelic.notification.sendSlack
version: 1
inputs:
destinationId: ccd0d926-ed6f-4ddd-bc7d-b7ea9822908d
text: Hi , Testing notifcation api using slack channel name
channel: test-channel-workflow
name: slack_notification_workflow
description: This is a test workflow to test slack notification send action
steps:
- name: SendMessageUsingSlackChannel
type: action
action: newrelic.notification.sendSlack
version: 1
inputs:
destinationId: ccd0d926-ed6f-4ddd-bc7d-b7ea9822908d
text: Hi , Testing notifcation api using slack channel name
channel: test-channel-workflow
```
</td>
</tr>
Expand Down Expand Up @@ -780,21 +782,21 @@ See [License Key](/docs/apis/intro-apis/new-relic-api-keys/#license-key) for inf
### Example

```yaml
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"
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"
```
</TabsPageItem>

Expand Down
Loading