Zetect Expressions & Transforms Back to zetect.inSwitch portal ⇄

Utility Transforms

Return a fixed value, generate a unique identifier, or chain other transforms into a pipeline.

static

Returns a fixed value. The value can contain ${name} tokens. static ignores input and the previous step's result.

OptionDescriptionDefault
valueThe value to return.None: no value is returned

An object with a value but no type behaves the same way, and so does a plain text value wherever a transform expects a value, such as then or default.

{ "type": "static", "value": "ACTIVE" }
→ ACTIVE

{ "type": "static", "value": "${department}-users" }
department = Finance → Finance-users

uuid

Returns a new random unique identifier, in the standard 36-character form, each time it runs. It has no options and ignores input and the previous step's result.

OptionDescriptionDefault
None——
{ "type": "uuid" }
→ 8e13eb6e-f859-4ebb-a0f9-6c719799d2ef

pipeline

Runs a list of transforms in order. Each step that has no input of its own works on the previous step's result, and the pipeline returns the last step's result. See Chaining Transforms for how each type uses the previous result.

OptionDescriptionDefault
stepsA JSON list of transforms. A step can be any transform, including another pipeline or an if. A plain text step is filled in like an expression.None: no value is returned
  • The first step of a top-level pipeline has no previous result, so give it an input.
  • A nested pipeline starts from the outer pipeline's current value.
  • Pipelines and if branches nest up to 20 levels deep. A deeper definition returns no value.
{
  "type": "pipeline",
  "steps": [
    { "type": "trim", "input": "${department}" },
    { "type": "uppercase" },
    { "type": "lookup",
      "mapping": { "IT": "OU=IT,DC=example,DC=com" },
      "default": "OU=Users,DC=example,DC=com" }
  ]
}
department = " it " → IT → OU=IT,DC=example,DC=com