Model Context Protocol (MCP) finally gives AI models a way to access the business data needed to make them really useful at work. CData MCP Servers have the depth and performance to make sure AI has access to all of the answers.
Try them now for free →Connect to HubDB Data in Claris FileMaker Pro
Use the CData ODBC Driver for HubDB in FileMaker Pro to connect to HubDB and work with HubDB data in your FileMaker applications.
Claris FileMaker is a low-code database application development tool that allows users to create custom apps for managing and organizing data. It combines a powerful relational database engine with an intuitive interface, enabling both technical and non-technical users to design and deploy applications across desktop, web, and mobile platforms.
In this article, we'll explore how to use the CData ODBC Driver for HubDB in FileMaker to connect to HubDB data.
Create an ODBC Data Source for HubDB
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
There are two authentication methods available for connecting to HubDB data source: OAuth Authentication with a public HubSpot application and authentication with a Private application token.
Using a Custom OAuth App
AuthScheme must be set to "OAuth" in all OAuth flows. Be sure to review the Help documentation for the required connection properties for you specific authentication needs (desktop applications, web applications, and headless machines).
Follow the steps below to register an application and obtain the OAuth client credentials:
- Log into your HubSpot app developer account.
- Note that it must be an app developer account. Standard HubSpot accounts cannot create public apps.
- On the developer account home page, click the Apps tab.
- Click Create app.
- On the App info tab, enter and optionally modify values that are displayed to users when they connect. These values include the public application name, application logo, and a description of the application.
- On the Auth tab, supply a callback URL in the "Redirect URLs" box.
- If you're creating a desktop application, set this to a locally accessible URL like http://localhost:33333.
- If you are creating a Web application, set this to a trusted URL where you want users to be redirected to when they authorize your application.
- Click Create App. HubSpot then generates the application, along with its associated credentials.
- On the Auth tab, note the Client ID and Client secret. You will use these later to configure the driver.
Under Scopes, select any scopes you need for your application's intended functionality.
A minimum of the following scopes is required to access tables:
- hubdb
- oauth
- crm.objects.owners.read
- Click Save changes.
- Install the application into a production portal with access to the features that are required by the integration.
- Under "Install URL (OAuth)", click Copy full URL to copy the installation URL for your application.
- Navigate to the copied link in your browser. Select a standard account in which to install the application.
- Click Connect app. You can close the resulting tab.
Using a Private App
To connect using a HubSpot private application token, set the AuthScheme property to "PrivateApp."
You can generate a private application token by following the steps below:
- In your HubDB account, click the settings icon (the gear) in the main navigation bar.
- In the left sidebar menu, navigate to Integrations > Private Apps.
- Click Create private app.
- On the Basic Info tab, configure the details of your application (name, logo, and description).
- On the Scopes tab, select Read or Write for each scope you want your private application to be able to access.
- A minimum of hubdb and crm.objects.owners.read is required to access tables.
- After you are done configuring your application, click Create app in the top right.
- Review the info about your application's access token, click Continue creating, and then Show token.
- Click Copy to copy the private application token.
To connect, set PrivateAppToken to the private application token you retrieved.
When you configure the DSN, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.
Connect and sync HubDB data with FileMaker using the CData ODBC Driver for HubDB
Once you configure the CData ODBC Driver for HubDB, you can connect to live HubDB data in FileMaker and use it in your applications. In this section, we'll walk through the steps to connect live HubDB data to FileMaker.
You can download and install the latest version of FileMaker Pro for your Mac/Windows/Linux systems here: https://www.claris.com/resources/downloads/.
Importing HubDB data using FileMaker's ODBC Import Function
Follow the steps below to easily import HubDB data using the ODBC import feature:
- Open FileMaker Pro. Navigate to Create from the left panel and select Blank > Create.
- Enter a desired filename and click Save.
- In the Manage Database window, go to the Tables tab and create or rename the table where you want to display HubDB data.
- In the Fields tab, add the required fields to the table.
- In the Relationships tab, define table relationships if your database has multiple tables, then click OK.
- To reopen and modify the table structure later, go to File > Manage > Database.
- To import HubDB data via the CData ODBC Driver for HubDB, navigate to File > Import Records > ODBC Data Source.
- In the Select ODBC Data Source window, choose CData ODBC Driver for HubDB and click Create. Enter your HubDB username and password, then click OK.
- In the SQL Query Builder window, select the desired table from the Tables section and choose the relevant columns from the Columns section. Click Insert into SQL Query after each selection to automatically generate a query that retrieves data from HubDB. You can also manually edit the query using WHERE and ORDER BY clauses or use the tabs provided in the SQL Query Builder. Click Execute to run the query.
- In the Specify Import Order window, define the import order for the target fields. Select Add between source and target to add new records to the target table from the selected fields. Click Import.
You have now successfully imported HubDB data into FileMaker Pro using the CData ODBC Driver for HubDB. To perform incremental updates, change the import order to "Update" or use "Replace" based on your use case.
Process HubDB data at design time
You can sort and aggregate data, as well as calculate summary functions while browsing tables. To manipulate the view of data at design time, complete the following steps:
- Switch to Preview Mode: Click the Preview at the top to check how the HubDB data with look before you print it.
- Switch to Table View: Click the table icon in the View As menu in the main toolbar of the application.
Aggregate and summarize
Follow the steps below to group column values and display summaries, as shown in the screenshot:
- Sort: Click the arrow in the NumberOfEmployees column header and choose Sort Ascending from the menu.
- Group: In the same menu, click Add Trailing Group by Industry to group the values and insert a summary row. Alternatively, click Add Leading Group to add a summary row at the beginning.
- Summarize: Select a summary option from the Trailing Subtotals menu for a grouped column.
Create a bar chart
Use the following steps to create a simple bar chart showing the total NumberOfEmployees for each Industry:
- Click the arrow in the NumberOfEmployees column header and select Chart by NumberOfEmployees.
- If you've already grouped the table by a column (e.g., Industry), you can chart NumberOfEmployees by that column.
- In the Chart Setup window:
- Click the button next to the Data box to add the x-axis column.
- Choose the appropriate column in the dialog that appears.
- For the y-axis, select a summary option from the Summary menu.
Get Started Today
Download a free 30-day trial of the CData ODBC Driver for HubDB to integrate HubDB data into Claris FileMaker and work with HubDB data in your FileMaker applications.
Reach out to our Support Team if you have any questions.