Skip to main content

Set Value

Replaces the value with a Value you choose, always or only when the value is empty. It is how a mapping gets a label or a default. A value typed as text is used as text, and a variable reference is used as the value it resolves to, whatever its type; leave Value blank to set the value to null.

The Set Value reference describes each field, in the same words its Guide icon shows in the tool.

When​

  • Always replaces every value. On its own it is rarely what you want; inside a Conditional's branches it is what gives each branch something to produce. A Conditional that tests whether a status equals done can hold a Set Value of Published under Then and one of Draft under Else.
  • Only When Empty replaces only an empty value, which is null, empty text, or an empty list or object, and passes any other value on unchanged. This is the way to supply a default: an Extract Path of assignee/displayName followed by a Set Value of Unassigned with Only When Empty names the assignee when there is one and says Unassigned when there isn't, with no Conditional.

Set Value is the one transform that acts on an empty value rather than passing it on, which is what makes the second use work.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.