The code flow object allows JavaScript code to be run against the messages that are passed through it.
Code field
|
Input area for the JavaScript code. You can use ?input.keyname? in the code to read the input key
elements from the input message. The JavaScript code must return data structured in JSON format.
|
Output field
|
Input area for the output message in JSON format. You can use ?code.keyname? to access the key
elements returned by the JavaScript code and ?input.keyname? to access the input key elements from
the input message.
|
Hint
In an empty Output field, press i for "?input.key?", c for "?code.key?", and a for "?api.key?"
to generate the default JSON template.
Example: