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.

{
  "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:

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

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]

{
  "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

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

❗️Important

Was this helpful?