Extract Values
This node creates a simple array of values from an array of objects.
The Extract Values node (also known as Pluck) isolates a single property from a list of objects.
The Extract Values node iterates through an array of objects and extracts the value of a specific property (defined by Key Path) from each one. The result is a flat array of those values.
| Data | Description |
|---|
| Array | The source array of objects. |
| Data | Description |
|---|
| Key Path | The property path to extract (e.g., "id", "user.email"). |
Actions
| Signal | Description |
|---|
| Do | Triggers the extraction. |
Outputs
Data
| Data | Description |
|---|
| Extracted Array | The resulting array of values. |
Signals
| Signal | Description |
|---|
| Done | Triggered when complete. |
Usage
Use this to simplify data for charts, dropdowns, or calculations.
Example Use Cases
- Dropdown Values: Convert a list of
User objects into a list of names for a dropdown menu.
- Input:
[{id:1, name:"Alice"}, {id:2, name:"Bob"}]
- Key Path:
name
- Result:
["Alice", "Bob"]
- Chart Data: Extract
sales from a list of DailyReport objects to feed into a Line Chart.
- ID List: Get a list of IDs to send to an API for bulk deletion.
Detailed Behavior
- Deep Access: Supports dot notation (e.g.,
address.city).
- Preserves Order: The output array matches the order of the input array.
- Length Matching: The output array has the same length as the input array.
Troubleshooting
- Undefined Values: If a key path doesn't exist on an object, the extraction fails for that item.