This page provides a reference for New Relic NerdGraph actions available in the workflow automation actions catalog. These actions enable you to execute NerdGraph queries and mutations.
Prerequisites
Before using New Relic NerdGraph 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.
Run NerdGraph request
The action identifier is newrelic.nerdgraph.execute.
Executes a GraphQL command against the New Relic NerdGraph API. The command can be either a query or a mutation.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
graphql | String | Required. A GraphQL statement. Use GraphiQL to build and test your command. | |
variables | Map[string]any | Required. Any key/value pair variables to use with the GraphQL statement. | |
selectors | List | Optional. The selectors to get only the specified parameters as output. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
data |
| Contents of the |
success | Boolean | Status of the request. |
errorMessage | String | Failure reason as message. |
The following example runs a NerdGraph query to retrieve the current user ID, then logs the result.
Workflow example |
|---|
|