Build a query string
FreeLogic@rabbinatix/build-a-query-string by Rabbinatixupdated Oct 4, 2026
Turns `{ q: "tea & cake", page: 2 }` into `q=tea%20%26%20cake&page=2`.
Lists the fields with Entries, encodes each name and value with a helper function, and joins them with &.
Shows: Entries, Map, Get Property, URL Encode, Format, Join.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Build query. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
params: Record
Outputs
query: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Build query
params
Entries, Object. 1 input, 1 output. step 2 of 5
Entries
object
entries
Map, Collection. 1 input, 1 output. step 3 of 5
Map Encode a pair
array
result
Join, String. 2 inputs, 1 output. step 4 of 5
Join
items
separator
result
Return, Input / output. 2 inputs, 0 outputs. step 5 of 5
Return
query
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 |
|---|---|---|---|
| Text and a number | {"params":{"q":"tea & cake","page":2}} | {"query":"q=tea%20%26%20cake&page=2"} | |
| No parameters | {"params":{}} | {"query":""} |
Try it
Versions
In this package
Build query (entry)
Encode a pair
