But how can I make use of the relevant feature (is it filterByFormula?) to add
Elsewhere on the forum, I have seen reference like…
filterByFormula=SEARCH(‘riva’%2C+%7BLast+Name%7D)
But I have not crystallised how I would perform a query for the record with a specific “Published URL” value.
How do I do this, and what do I need to know about encoding a URL and the whole query parameter pair?
Thanks.
Page 1 / 1
filterByFormula allows you to apply an Airtable formula to limit the records that are returned. If I understand your question correctly, rather than trying to fetch a record by its Airtable record ID, you want to fetch it based on a different field value.
You can do this by doing filterByFormula={Field Name}="value". When your field names have a space in them, you have to wrap the name in curly brackets (you can also do this for field names that don’t have a space character, but it is not required). You should be aware that making a GET call with filterByFormula will always return a list of records, even if that list only has one value in it.
But how can I use filterByFormula to search for a specific containing string, i.e: If I’m searching for a book name like “UX design” and the search term was just ‘ux’ how to do this?
Reading the documentation at support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference, your formula would look something like:
SEARCH("ux",{Field Name})
Using the Airtable API Encoder (at codepen.io/airtable/pen/rLKkYB) suggested above, the corresponding URL would look something like:
filterByFormula allows you to apply an Airtable formula to limit the records that are returned. If I understand your question correctly, rather than trying to fetch a record by its Airtable record ID, you want to fetch it based on a different field value.
You can do this by doing filterByFormula={Field Name}="value". When your field names have a space in them, you have to wrap the name in curly brackets (you can also do this for field names that don’t have a space character, but it is not required). You should be aware that making a GET call with filterByFormula will always return a list of records, even if that list only has one value in it.
The above Formula is not working for the below format
“loanFk”: k
“recazeHVfHg52dTFn”
],
filterByFormula allows you to apply an Airtable formula to limit the records that are returned. If I understand your question correctly, rather than trying to fetch a record by its Airtable record ID, you want to fetch it based on a different field value.
You can do this by doing filterByFormula={Field Name}="value". When your field names have a space in them, you have to wrap the name in curly brackets (you can also do this for field names that don’t have a space character, but it is not required). You should be aware that making a GET call with filterByFormula will always return a list of records, even if that list only has one value in it.
How can I compose a filterByFormula string to get only records from a set of record IDs? I tried filterByFormula=“OR(RECORD_ID() = ‘recRjdJSziwMjfhO8’, RECORD_ID() = ‘recdRonUzKAIMPOxb’)”, but id doesn’t work. Thank you in advance,
How can I compose a filterByFormula string to get only records from a set of record IDs? I tried filterByFormula=“OR(RECORD_ID() = ‘recRjdJSziwMjfhO8’, RECORD_ID() = ‘recdRonUzKAIMPOxb’)”, but id doesn’t work. Thank you in advance,
The string filterByFormula=“OR(RECORD_ID() = ‘recRjdJSziwMjfhO8’, RECORD_ID() = ‘recdRonUzKAIMPOxb’)” works. Sorry. My bad. I had another issue.
But how can I use filterByFormula to search for a specific containing string, i.e: If I’m searching for a book name like “UX design” and the search term was just ‘ux’ how to do this?
filterByFormula allows you to apply an Airtable formula to limit the records that are returned. If I understand your question correctly, rather than trying to fetch a record by its Airtable record ID, you want to fetch it based on a different field value.
You can do this by doing filterByFormula={Field Name}="value". When your field names have a space in them, you have to wrap the name in curly brackets (you can also do this for field names that don’t have a space character, but it is not required). You should be aware that making a GET call with filterByFormula will always return a list of records, even if that list only has one value in it.
I an new to Airtable and have a similar requirement. I have a simple database with keywords. I’m looking for a get API that will search input string in the database and if available, output the same.
It looks like Regex can resolve this. What would the syntax look like?
I an new to Airtable and have a similar requirement. I have a simple database with keywords. I’m looking for a get API that will search input string in the database and if available, output the same.
It looks like Regex can resolve this. What would the syntax look like?
Thank you - I was looking for the JS Script API, which I was able to figure using the attached link
I have a lookup field that contains comma separated values, like so: pg, cc, pg
How might I structure my formula to say, “If my field contains ‘cc’”…?
I have a lookup field that contains comma separated values, like so: pg, cc, pg
How might I structure my formula to say, “If my field contains ‘cc’”…?
I figured it out. The lookup field was pulling from a single line text field. Once I changed it to a single select field, I was able to use a FIND formula:
FIND("cc",{Learning Center ID})>0
When using filterByFormula , the new filter will be applied on top of the existing View filters to further filter the results down. It will not replace filters already on your View.
Is it possible to somehow replace the Field Name{Field Name} part of the URL string by the AirTable Field IDfldnXGeRDd2r9SeRb?
I want to avoid that the code breaks in case the column is renamed.
You can find out the Field ID by opening Chrome or Firefox Code Inspector and searching for the column header’s parent div which looks like: