Filter List by Multiple Values
Filters a list of objects, keeping the items whose value at a given path matches any of a set of values. Use it to narrow a list down to specific entries.
What it does
- Compares the value at the given JSON path in each item against your list of comparison values.
- Returns the filtered list, plus which values were found and which were not.
- Reports whether all of the values matched, and whether at least one matched.
Inputs
| Name | Type | Description |
|---|---|---|
| Items to Filter | List | List of objects to filter |
| JSON Path | String | JSON path in the item to the value for comparison. |
| Comparison Values | List | List of values to filter against |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Successfully run the filter |
| Filtered List | List | filtered list of items satisfying the comparison |
| Included Values | List | values from input that were found |
| Not Included Values | List | values from input that were not found in the list |
| Found All? | Boolean | all values were matched? |
| Found one? | Boolean | at least one value was matched? |
Notes
- The JSON path points to the field inside each item to compare against the values.