Merge

Merges multiple objects into a single object. The output object has all of the keys (with their associated values) that appear in any of the input objects. If the same key appears in more than one of the input objects, only one value is taken. There are two inputs by default, but more can be added.

Input Fields

  • object 1: an object to merge

  • object 2: a second object to merge

  • Note: You can merge a third object by clicking the gray placeholder input or dragging-and-dropping an object into it. Afterwards, a new placeholder will appear for a fourth (or more) input(s).

Output Fields

  • output: the newly merged object

Example:

object 1:{"email":"jane@doe.com", "id":123}

object 2:{"email":"jane@doe.com", "first":"Jane", "last":"Doe"}

output:{"email":"jane@doe.com", "id":123, "first":"Jane", "last":"Doe"}

See Also

Functions

About the elements of Okta Workflows