Find by id
FreeLogic@rabbinatix/find-by-id by Rabbinatixupdated Oct 4, 2026
The item of a list whose `id` matches, and its position.
Map lists the ids, Find Item gives the position (−1 when missing) and Get Item the item (null when missing).
Shows: Find Item, Get Item, Map.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Find by id. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
items: List of records
id: Text
Outputs
item: Record (may be empty)
index: Whole number
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 5
Find by id
items
id
Map, Collection. 1 input, 1 output. step 2 of 5
Map Id of an item
array
result
Find Item, Collection. 2 inputs, 1 output. step 3 of 5
Find Item
array
item
index
Get Item, Collection. 2 inputs, 1 output. step 4 of 5
Get Item
array
index
item
Return, Input / output. 3 inputs, 0 outputs. step 5 of 5
Return
item
index
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Found | {"items":[{"id":"a","n":1},{"id":"b","n":2}],"id":"b"} | {"item":{"id":"b","n":2},"index":1} | |
| Missing | {"items":[{"id":"a","n":1}],"id":"z"} | {"item":null,"index":-1} |
Try it
Versions
In this package
Find by id (entry)
Id of an item
