<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with Retrieving Non-Archived Rows from HubDB Table via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999087#M74666</link>
    <description>&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you're trying&amp;nbsp;&lt;A href="https://worldanimalsfoundation.org/" target="_blank" rel="noopener"&gt;World Animal Foundation&lt;/A&gt;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an alternative approach to filter out archived rows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. **Retrieve All Rows:** Make an API call to retrieve all rows from the table.&lt;/P&gt;&lt;P&gt;2. **Filter Manually:** After retrieving the rows, manually filter out the archived rows in your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how you can do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Step 1: Retrieve All Rows&lt;/P&gt;&lt;P&gt;Make an API call to retrieve all rows from your HubDB table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```sh&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows" target="_blank" rel="noopener"&gt;https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Step 2: Filter Manually&lt;/P&gt;&lt;P&gt;Once you have the data, you can manually filter out the rows that are archived in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example in Python:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By following these steps, you should be able to filter out archived rows effectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jun 2024 15:53:11 GMT</pubDate>
    <dc:creator>RMaria</dc:creator>
    <dc:date>2024-06-29T15:53:11Z</dc:date>
    <item>
      <title>Issue with Retrieving Non-Archived Rows from HubDB Table via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999036#M74658</link>
      <description>&lt;P&gt;Hi HubSpot Community,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I attempted to use the archived=false filter in my API call as shown below:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows?archived=false" target="_blank" rel="noopener"&gt;https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows?archived=false&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I received the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;"error when listing rows for table {TABLE_ID} for portal {PORTAL_ID}: Invalid filter column 'archived'."&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ali&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2024 10:59:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999036#M74658</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-06-29T10:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Retrieving Non-Archived Rows from HubDB Table via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999087#M74666</link>
      <description>&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you're trying&amp;nbsp;&lt;A href="https://worldanimalsfoundation.org/" target="_blank" rel="noopener"&gt;World Animal Foundation&lt;/A&gt;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an alternative approach to filter out archived rows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. **Retrieve All Rows:** Make an API call to retrieve all rows from the table.&lt;/P&gt;&lt;P&gt;2. **Filter Manually:** After retrieving the rows, manually filter out the archived rows in your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how you can do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Step 1: Retrieve All Rows&lt;/P&gt;&lt;P&gt;Make an API call to retrieve all rows from your HubDB table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```sh&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows" target="_blank" rel="noopener"&gt;https://api.hubapi.com/cms/v3/hubdb/tables/{ID}/rows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Step 2: Filter Manually&lt;/P&gt;&lt;P&gt;Once you have the data, you can manually filter out the rows that are archived in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example in Python:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By following these steps, you should be able to filter out archived rows effectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2024 15:53:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999087#M74666</guid>
      <dc:creator>RMaria</dc:creator>
      <dc:date>2024-06-29T15:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Retrieving Non-Archived Rows from HubDB Table via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999124#M74667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/490980"&gt;@AliFawadHassan&lt;/a&gt;&amp;nbsp;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 &lt;A href="https://developers.hubspot.com/changelog/consistency-with-term-archived-in-cms-apis" target="_blank" rel="noopener"&gt;archive vs deleted for APIs&lt;/A&gt; - it might be worth trying to exclude deleted instead of archived as a next step.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2024 21:51:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Issue-with-Retrieving-Non-Archived-Rows-from-HubDB-Table-via-API/m-p/999124#M74667</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-06-29T21:51:35Z</dc:date>
    </item>
  </channel>
</rss>

