Jun 17, 2019 01:13 PM
Hello!
I have two tables linked by a foreign key. How can I get the second table entries that reference the first table entry?
The fact is that the record ID is stored in an array. I tried to use the ARRAYJOIN function, but it returns a string from the display names, not an ID
Thank you in advance!
Jun 24, 2019 09:14 AM
You’ve posted this question to the API Category, but this doesn’t sound like you’re using the API because the API always returns the IDs (as opposed to the display names). If you are using the API, what programming language are you using?
Regardless, here’s two ways to get the Record IDs of related fields. Assuming we have a Products table and a Vendors table:
Using the Airtable app
Using the Airtable api
OR(RECORD_ID() = 'recXXXXXXXXXXXXXX',RECORD_ID() = 'recXXXXXXXXXXXXXX')
or this SEARCH(RECORD_ID(), "recXXXXXXXXXXXXXX,recXXXXXXXXXXXXXX")
Jun 24, 2019 10:01 AM
Thank you very much!