Join the Webstudio community

Updated 2 months ago

Filter a list of records from an Airtable resource using the value from system.origin

At a glance

A community member is seeking help to filter a list of records from an Airtable resource using the system.origin value. The community members discuss various approaches, including using the filterByFormula parameter in the Airtable API, but encounter issues with the syntax and formatting. Eventually, a community member suggests a working solution using {domain}="${system.origin}" in the API request, but there is no explicitly marked answer.

Useful resources
Hey guys, anyone know how I can filter a list records (from Airtable resource) with the value from system.origin. Help is much appreciated.
m
O
9 comments
not sure but sounds like you didn't put the string into backticks and you don't need double quotes
Plain Text
`http....${system.origin}`
filterByFormula={domain}="${system.origin}

This looks wrong too, parameters are always key=value&key=value&key=value
maybe ask AI when you are building things like this
thanks @Oleg Isonen this actually is correct https://api.airtable.com/v0/appHWOyP1u7WIu8Yo/test?filterByFormula={domain}='https://xxx-ws.wstd.io'

but I need to access the dynamic system.origin value
backticks create invalid URL
Attachment
Screenshot_2025-03-13_at_13.46.04.png
I tried Binding like this too
Attachment
Screenshot_2025-03-13_at_13.55.40.png
Looks like this worked: https://api.airtable.com/v0/appHWOyP1u7WIu8Yo/test?filterByFormula={domain}="${system.origin}"
Add a reply
Sign up and join the conversation on Discord