Property description

The selectParent stream selects the parent of objects returned by the previous step or trigger.

Minimal JSON

{
  "key": "",
  "type": "selectParent"
}

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the stream.stringYes
typeselectParentstringYes
keepCurrentDetermines if the automation remembers the current object while still selecting and adding its parent. When false, the current object is replaced by its parent. For more information, see Keep current example.booleanNo
keepOriginDetermines whether the object ID from which the select started is remembered.booleanNo

Keep current example

We have the following hierarchy: A > B > C. We start on object [C].

"keepCurrent": true

  • First automation result: [C, B] = We keep the original object [C]andadd its parent [B].
  • Second automation result: [C, B, A] = We keep all previous objects and add the grandparent [A] (parent of [B]).

"keepCurrent": false

  • First automation result: [B] = We discard [C] and only return its parent [B].
  • Second automation result: [A] = We take the previous result [B], discard it, and return its parent [A].