Already seen:
- /t/if-contains-formula/10126
- How can I count the number of linked records in a linked record field (column)? – Airtable Support
- /t/counting-linked-records-formulaically/20537
- /t/formula-to-count-records-in-linked-tables-based-on-values/32018
Hello Airtable Community
I’m currently consuming Airtable via the API in Javascript and I want to fetch some records accordingly to some linked field based criteria.
I have a linked field (called “trainings”) and I need to return records containing only a specific linked value.
The way is obviously with filterByFormula
options in my base.select()
function BUT I cannot use SEARCH()
or equivalent in my formula:
e.g.
base.select({ filterByFormula: "SEARCH('Some Training Name', trainings)" });
The reason is that “training”'s names may have a comma or any other special char and a formula is computing a linked field by default by concatenating corresponding primary field to a single comma separated string…
I want to have the same behaviour as a view’s filter regarding linked fields ; but I cannot rely on views as their it’s not possible to preconstruct them programatically and because my criteria is dynamic.
Reproduction : Airtable - Repro Count LinkedField Formula
Thanks in advance for the help.