---
title: nrSetCustomAttributeList
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/custom-attributes/nrsetcustomattributelist
---

## Syntax

```js
  nrSetCustomAttributeList(nr as Object, attr as Object, actionName = "" as String) as Void
```

## Description

Set a custom attribute list to be included in the events.

## Arguments

| Arguments    | Description                                                                  |
| ------------ | ---------------------------------------------------------------------------- |
| `nr`         | New Relic Agent object.                                                      |
| `attr`       | Attribute list, as an associative array.                                     |
| `actionName` | (optional) Action where the attribute will be included. Default all actions. |

## Return

Nothing.

## Example

```js
  	attr = {"key0":"val0", "key1":"val1"}
	  nrSetCustomAttributeList(m.nr, attr, "CONTENT_HEARTBEAT")
```
