---
title: Config Events and Values
url: https://www.tines.com/docs/actions/configuration/config-events-and-values/
updated: 2025-05-30T16:18:12+00:00
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Actions](https://www.tines.com/llm/docs/actions.md) › [Configuration](https://www.tines.com/llm/docs/actions/configuration.md)*

# Config Events and Values

*[View on tines.com](https://www.tines.com/docs/actions/configuration/config-events-and-values/)*

## Working with Events and Values

Every Tines event is a JSON object. The data within events can be accessed in action configurations using JSONPaths.

```json
{
  "customerName":"John Doe",
  "address":
  {
    "streetAddress":
    {
      "number":123,
      "street":"Sample Street"
    },
    "city":"Example Town"
  }
  "orders":
  [
    {
      "orderId":23284,
      "itemName":"Widget",
      "itemPrice":33.99
    },
    {
      "orderId":63122,
      "itemName":"Gadget",
      "itemPrice":22.50
    },
    {
      "orderId":77284,
      "itemName":"Sprocket",
      "itemPrice":12.00
    }
  ]
}
```

To insert information from an incoming event into an action's options block, first insert a value pill:

![](https://www.datocms-assets.com/55802/1655988183-actions_configuration_add_pill-76c13542664c33a233beaf3a5737186b.gif)

This will display a popup where you can add the value you want to be inserted into this location

![](https://www.datocms-assets.com/55802/1655988199-actions_configuration_pill_editor-628da78409cd5638ef86b9ad4547516d.png)

Within this popup typing the following will insert the value of the customerName key from the above, sample Tines event

`customerName`

```
John Doe
```

To access information in a nested JSON key, use the following syntax:

`key_name.subkey_name`

The following will insert the value of the city key from the above, sample Tines event.

`address.city`

```
Example Town
```

### Accessing Data in Nested Keys

You can query further levels of subkeys using the following syntax.

`address.streetAddress.street`

```
Sample Street
```

### Accessing Data in Arrays

Arrays are queried using an array index expression inside square brackets ([]). For example, the following wrapped JSONPath can be used to access the first element of the "orders" array:

`orders[0]`

```json
{
  "orderId":23284,
  "itemName":"Widget",
  "itemPrice":33.99
}
```

The following wrapped JSONPath will return the `itemPrice` from the 2nd element of the orders array.

`orders[1].itemPrice`

```json
{
  "orderId":63122,
  "itemName":"Gadget",
  "itemPrice":22.50
}
```

> **IMPORTANT:** It is often necessary to process every element of an array individually, this can be achieved using an [Event Transformation Action](/docs/actions/types/event-transformation) in 'explode' mode.
