Hi all,
I need to get a specific row from a table but I do not have the rowId. I do however have access to another unique identifier.
Is there a way I can use the queryTables or other API endpoint to get this row in an efficient way? Retrieving 60k+ rows just to get this one row is not ideal.
Short answer is no. The API doesn’t support any filtering options with GET_ALL_ROWS. It’s all or nothing. (I wish it did, and am hopeful that it will at some point).
Can you describe the bigger picture a little bit? - maybe there might be an easier way to get to your end goal. What is your data source - Glide tables only, or something else?
Thanks for the reply. While I have been in low-code for a long time this is my first real outing into Glide so just getting into all the good and unfortunately not-so-good things about it.
Still working on your suggestion in the other post, was just curious on the overall api capability or lack thereof.
Thanks again for responding so quickly and for sharing so openly.
New to Glide but long time Zapier user. I ported the back-end DBs from Air-table to Glide tables (not an easy migration BTW) when I heard you had an API. My app requires some logic that updates fields in 2 different tables from a submit action in one form. This would be easy to do in a Zap if the API followed some CRUD or REST patterns. My bad for not checking sooner, but your API is literally unusable with Zapier in this common use case:
+1 to the OP’s question. Having to dump the entire DB just to find your internal row identifiers is not workable and cannot scale.
Returning the data as CSVs instead or proper JSON means that I’d have to write some hacky parsers in Python to make the Zap work.
So 100% supportive of the low-code/no-code paradigm, but you really need a decent API for the edge cases. If we could pass parameters to the queryTables end-point based on fields in the table and if you returned a JSON data structure that Zapier could parse, that would be amazing.
I’m off to move my DBs out into something that Zapier can process.
Zapier puts the output in line-oriented csv (i.e. one comma-delimited line for each field in the DB).
Do you know of a way to pass a single field’s data to a subsequent step in the Zap without parsing the string and finding the element that you need.
For example, the output in Zapier comes out like this:
Gotcha, the issue raised by the OP is the other blocker. Most DB APIs have this workflow to edit a record:
Call the Query API with query parameters based on fields in the DB and grab the recordID from the output
Use the recordID to make a call back to the API to update the record.
We can’t do that with the Glide Table API. We would first have to pull the entire DB, then (on the Zapier side) put it all into something that could be indexed (i.e. array), figure out which field identifiers correspond to the fields we need to search, make a search function to find the record we need, then get the recordID.
yep, I agree, it’s a PITA.
I’ve been badgering Glide about this for some time now.
As I mentioned earlier, I’ve been told it’s most likely coming, it’s just a matter of how long it takes to bubble to the top of the list.
I assume it’s just a single update, or maybe a handful.
It’s definitely not one update per row, otherwise I’d be racking up millions up updates per month
(I’m not)