You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/2024.9/Reference/Concepts/fundamentals/blocks/block-properties/what-is-a-block-property.md
+66-1Lines changed: 66 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The icons used for Input properties are dark blue to distinguish them from [Outp
37
37
38
38
### Output Properties
39
39
40
-
Output properties are used to save values from a [block][]. These properties will saved to a variable during the block's execution.
40
+
Output properties are used to save values from a [block][]. These properties can be saved to a variable or decomposed to be saved into multiple variables during the block's execution.
41
41
42
42
Values from Output properties can be [discarded][Discarding Outputs], this means they will not be saved to any variable.
43
43
@@ -51,6 +51,71 @@ Output properties can be configured using the following editors:
51
51
52
52
The icon used for Output properties are light blue to distinguish them from [Input Properties][].
53
53
54
+
#### Decomposing Output Properties
55
+
56
+
Output values can be decomposed to allow the saving of different parts of the value to different variables.
57
+
58
+
To decompose an output value, the output property will need to be set to an expression. As an example, an output value value contains a Json object, e.g:
59
+
60
+
```json
61
+
{
62
+
"company": {
63
+
"name": "Company Name",
64
+
"department": [
65
+
{
66
+
"name": "HR",
67
+
"employees": [
68
+
{
69
+
"name": "Joe Blogs",
70
+
"id": "101"
71
+
},
72
+
{
73
+
"name": "Jane Doe",
74
+
"id": "102"
75
+
}
76
+
]
77
+
}
78
+
]
79
+
}
80
+
}
81
+
```
82
+
83
+
To decompose this structure and store a part of the value to a variable, e.g. to get the employees for the first department, the syntax would be:
0 commit comments