Join the Webstudio community

Updated 5 days ago

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

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