Skip to main content

Transformer

The Transformer Task allows you to write custom transformation and other logic as Typescript code. See Writing Custom Code for more details.

Configuration

Transformer allows you to configure the Input to your custom code as a Templated Input field.

ConfigurationDescription
Input (Tab)Templated Input. This will define the object your code receives
Transformer Task Options - Input
Types (Tab)Use schemas (Built-in Schemas or create your own) to define your Input and Output object types in Transformer Code, and include any additional schemas as needed (from available Schemas) to be used in the code
Transformer Task Options - Types
Code (Tab)Write your custom typescript code here. See Writing Code for more details.
Transformer Task Options - Code

Task Output

Transformer produces the following Task Output that can be used as Variable Input in your subsequent tasks.

Transformer Output (via Step Log Details)
Task Output (via Step Log Details)
Output VariablesDataTypeDescription
ResponseBodyJsonReturned output from your custom code. This maps to the ResultObject.Output value you return from the Transform() method above
StateJsonState Data to be merged (top-level) back into Execution.State. Use this to store temporary data that can be editted in subsequent tasks, such as Loop Counters.