Coder Social home page Coder Social logo

One to many search difficulties about pyairtable HOT 4 CLOSED

Garito avatar Garito commented on September 21, 2024
One to many search difficulties

from pyairtable.

Comments (4)

mesozoic avatar mesozoic commented on September 21, 2024

You should be able to search the record link field using the value that you'd see in the primary field of the linked table. In your case, if Série is a record link field to a table called Series, you'd want the serie variable to contain whatever value appears in the primary field of the Series table.

Hope that helps! I'm closing this issue as it doesn't appear to be a problem with the library. If you think you've encountered a bug in pyAirtable, please post more details and an example of how to reproduce the bug.

from pyairtable.

Garito avatar Garito commented on September 21, 2024

It is not a bug in pyAirtable
I've tried to look for a record in the many part and the primary key is stored as [value]
Does it mean that my client has configured the field as a many-to-many relationship?
If so, can this configuration be changed without loosing data? or
How can I search it as a list of keys?
I've tried match({"Série": [serie]}) but it raises an error

Thanks

from pyairtable.

mesozoic avatar mesozoic commented on September 21, 2024

That's true: Airtable will always return record link fields as a list of IDs, regardless of whether the UI is configured to allow multiple records.

I don't think it is possible to construct a formula that searches on the list of record IDs in a linked record field. You might have more luck finding workarounds on the Airtable Community forums.

from pyairtable.

Garito avatar Garito commented on September 21, 2024

So airtable is not a good solution then (nor a real relational database)
Thanks, I will stop recommending it to my customers

from pyairtable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.