Property description
The selectParent stream selects the parent of objects returned by the previous step or trigger.
Minimal JSON
{
"key": "",
"type": "selectParent"
}
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the stream. | string | Yes |
type | selectParent | string | Yes |
keepCurrent | Determines 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. | boolean | No |
keepOrigin | Determines whether the object ID from which the select started is remembered. | boolean | No |
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].