I am encountering an issue when trying to retrieve rows from a HubDB table, specifically excluding the deleted or archived rows. Although these rows do not appear in the table, I still receive archived rows when accessing the table through the API.
“error when listing rows for table {TABLE_ID} for portal {PORTAL_ID}: Invalid filter column ‘archived’.”
It seems that the archived filter is not recognized. Could someone please assist me in correctly filtering out archived rows when making an API request? Any guidance on how to resolve this issue would be greatly appreciated.
It looks like you’re trying World Animal Foundation to exclude archived rows from your HubDB table using the `archived=false` filter, but encountering an error because the filter is not recognized. Unfortunately, HubDB’s API doesn’t directly support filtering rows by the `archived` status in the way you’ve attempted.
Here’s an alternative approach to filter out archived rows:
1. **Retrieve All Rows:** Make an API call to retrieve all rows from the table.
2. **Filter Manually:** After retrieving the rows, manually filter out the archived rows in your application.
Here’s how you can do it:
### Step 1: Retrieve All Rows
Make an API call to retrieve all rows from your HubDB table:
Hi @AliFawadHassan I’m not sure if this applies to the HubDB archived status in the API, but a couple of years ago HubSpot changed the definition of archive vs deleted for APIs - it might be worth trying to exclude deleted instead of archived as a next step.