Javascript Expression Language: Powerful context-based expression parser and evaluator.

In Peaka, JEXL empowers you to assign dynamic values to flows while seamlessly integrating with variables. This versatile feature extends to all property values, and for added convenience, you can access an expanded editing interface by simply clicking the arrow icon located on the right side of the property field.

Even properties typically represented as simple checkboxes can be transformed into JEXL editors with a single click of the expand icon button. Below, we present a selection of common examples demonstrating the practical application of JEXL:

Examples

  // addition
  {{sum(45, 99)}}
  // => 144

  // show name
  {{ "Hello " + my_name_variable}}
  // => 'Hello Can'

  // alternatively
  Hello {{ my_name_variable }}
  // => 'Hello Can'

  // convert the date
  {{convertLocaleDateString("Tue Aug 15 2023 10:23:41", "de",{
      weekday: "long",
      year: "numeric",
      month: "long",
      day: "numeric",
    })
  }}
  // => Dienstag, 15. August 2023

Using Variable in Webhook Response Flow Node

The webhook response flow node is designed to return a JSON object when you send a request to an external API. This functionality allows you to dynamically retrieve and integrate data into your workflows.

To include a variable in the body of the webhook response flow node, simply enclose the variable name within double curly braces, as demonstrated in the example below:

{{ getRecord_1 }}

In addition, we can easily access the value associated with the key ‘name’ in the object.

{{ getRecord_1.name }}

For detailed guidance on flows, please refer to this article.