Skip to main content

When I query the API for database records, how can I tell if a record is connected to a parent card?

From what I can tell, the ‘Parent Connection’ property only shows if a connection exists, not whether any specific record is actually connected to a card.

If this is not possible, is there a way to do this from the other end - use the API to see if a card has any child records connected?

Thank you.

@nphilips 

Hi!

When querying the API for database records, the “Parent Connection” field indicates that a connection could exist, but it doesn't confirm whether a specific record is actually linked to a parent card.

Unfortunately, at the moment there’s no direct way via the table_record object to see which card (if any) it’s connected to.

The recommended workaround is to approach this from the other direction by querying a card and checking its connected records. You can do this using the card query and inspecting the fields that connect to your database. Here's an example:

query 
{ card(id: YOUR_CARD_ID) 
{ id fields { name value } 
}

If you know the name or ID of the connection field, you can filter or locate the specific value that links to a table record.

 


Reply