> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: 5c8aa572-5c81-4a0c-b728-1ae81cbddb4e
---

# CrmAssociationTable

> Learn about the CrmAssociationTable component for use in UI extensions.

The `CrmAssociationTable` component renders a table of associated records with optional filtering, sorting, and search methods. You'll specify the type of records that you want to appear along with the properties to display as columns.

![ui-ext-components-associationstable](https://developers.hubspot.com/hs-fs/hubfs/Knowledge_Base_2023/ui-ext-components-associationstable.png)

```jsx theme={null}
import { CrmAssociationTable } from "@hubspot/ui-extensions/crm";

const Extension = () => {
  return (
    <CrmAssociationTable
      objectTypeId="0-3"
      propertyColumns={["dealname", "amount", "description"]}
      quickFilterProperties={["createdate"]}
      pageSize={10}
      preFilters={[
        {
          operator: "EQ",
          property: "dealstage",
          value: "contractsent",
        },
      ]}
      sort={[
        {
          direction: 1,
          columnName: "amount",
        },
      ]}
      searchable={true}
      pagination={true}
    />
  );
};
```

## Props

| Prop | Type | Description |
| - | - | - |
| `associationLabelFilter` | Boolean | When set to `false`, hides the "Association label" quick filter above the table. |
| `objectTypeId` | String | The numeric ID of the type of associated object to display (e.g., `0-1` for contacts). See [complete list](https://developers.hubspot.com/docs/api-reference/latest/crm/understanding-the-crm.md#object-type-ids) of object IDs. |
| `pageSize` | Number | The number of rows to include per page of results. Include the `pagination` property to enable users to navigate through returned results. |
| `pagination` | Boolean | When set to `false`, hides the pagination navigation below the table. |
| `preFilters` | Array | Filters the data by specific values of the associated records. Review the [CRM data filter options](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/crm-data-components/overview.md#filtering-data) for more information. |
| `propertyColumns` | Array | The properties to display as table columns. |
| `quickFilterProperties` | Array | The properties that appear as filters above the table. When included, the "Association label" quick filter will always display. See note below for more details on this prop. |
| `searchable` | Boolean | When set to `false`, hides the search bar above the table. |
| `sort` | Array | The default sorting behavior for the table. In each sort object in the array, you'll specify the following:<ul><li>`columnName`: the column to sort by.</li><li>`direction`: the direction to sort by. Can be either `1` (ascending) or `-1` (descending). By default, order is ascending.</li></ul> |

> [!WARNING]
>
> **Please note:**
>
> For `quickFilterProperties`:
>
> * By default, four quick filters will display automatically depending on the object type.
> * **Contacts (`0-1`):** `[ 'hubspot_owner_id', 'createdate', 'hs_lead_status', 'notes_last_updated' ]`
> * **Companies (`0-2`):** `[ 'hubspot_owner_id', 'hs_lead_status', 'notes_last_updated', 'createdate' ]`
> * **Deals (`0-3`):** `[ 'hubspot_owner_id', 'closedate', 'createdate', 'dealstage' ]`
> * **Tickets (`0-5`):** `[ 'hubspot_owner_id', 'createdate', 'hs_pipeline_stage', 'hs_lastactivitydate' ]`
> * Custom objects do not have default quick filters.
> * An empty array (`[]`) will remove any default quick filters except for "Association label."

## Related components

* [CrmAssociationPivot](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/crm-data-components/crm-association-pivot.md)
* [CrmAssociationPropertyList](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/crm-data-components/crm-association-property-list.md)
* [CrmReport](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensions/ui-components/crm-data-components/crm-report.md)
