How to use JEXL in Peaka
Click here to see a detailed description of how to use JEXL in Peaka
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
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:
In addition, we can easily access the value associated with the key ‘name’ in the object.
For detailed guidance on flows, please refer to this article.