Skip to main content

Retrieve first non-empty value

Return the first non-empty value from a list of inputs. This action takes in a list of input variables and returns the first one that isn't `None`, `null`, or `''`. `false` and `[]` (an empty list) are non-empty values and will be returned.

Application

  • Text

Inputs (what you have)

NameDescriptionData TypeRequired?Example
List of variablesList of variables to return the first non-empty value into destination fieldList of Text (Long)Yes
Destination fieldThe destination field name for list of variablesText (Long)Yes
List of variables 2List of variables to return the first non-empty value into destination field 2List of Text (Long)No
Destination field 2The destination field name for list of variables 2Text (Long)No
List of variables 3List of variables to return the first non-empty value into destination field 3List of Text (Long)No
Destination field 3The destination field name for list of variables 3Text (Long)No
List of variables 4List of variables to return the first non-empty value into destination field 4List of Text (Long)No
Destination field 4The destination field name for list of variables 4Text (Long)No
List of variables 5List of variables to return the first non-empty value into destination field 5List of Text (Long)No
Destination field 5The destination field name for list of variables 5Text (Long)No

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Fields to captureText (Long)YesField1

Outcomes

NameDescription
SuccessThis status is selected if details are extracted from the JSON.
Impossible to CompleteThis status is selected in the event of the following scenarios:A list of variables was filled out without a matching destination fieldA destination field was filled out without a matching Fields to capture

Requirements

  • N/A