Connect to Bitbucket Data in Claris FileMaker Pro



Use the CData ODBC Driver for Bitbucket in FileMaker Pro to connect to Bitbucket and work with Bitbucket 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 Bitbucket in FileMaker to connect to Bitbucket data.

Create an ODBC Data Source for Bitbucket

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.

For most queries, you must set the Workspace. The only exception to this is the Workspaces table, which does not require this property to be set, as querying it provides a list of workspace slugs that can be used to set Workspace. To query this table, you must set Schema to 'Information' and execute the query SELECT * FROM Workspaces>.

Setting Schema to 'Information' displays general information. To connect to Bitbucket, set these parameters:

  • Schema: To show general information about a workspace, such as its users, repositories, and projects, set this to Information. Otherwise, set this to the schema of the repository or project you are querying. To get a full set of available schemas, query the sys_schemas table.
  • Workspace: Required if you are not querying the Workspaces table. This property is not required for querying the Workspaces table, as that query only returns a list of workspace slugs that can be used to set Workspace.

Authenticating to Bitbucket

Bitbucket supports OAuth authentication only. To enable this authentication from all OAuth flows, you must create a custom OAuth application, and set AuthScheme to OAuth.

Be sure to review the Help documentation for the required connection properties for you specific authentication needs (desktop applications, web applications, and headless machines).

Creating a custom OAuth application

From your Bitbucket account:

  1. Go to Settings (the gear icon) and select Workspace Settings.
  2. In the Apps and Features section, select OAuth Consumers.
  3. Click Add Consumer.
  4. Enter a name and description for your custom application.
  5. Set the callback URL:
    • For desktop applications and headless machines, use http://localhost:33333 or another port number of your choice. The URI you set here becomes the CallbackURL property.
    • For web applications, set the callback URL to a trusted redirect URL. This URL is the web location the user returns to with the token that verifies that your application has been granted access.
  6. If you plan to use client credentials to authenticate, you must select This is a private consumer. In the driver, you must set AuthScheme to client.
  7. Select which permissions to give your OAuth application. These determine what data you can read and write with it.
  8. To save the new custom application, click Save.
  9. After the application has been saved, you can select it to view its settings. The application's Key and Secret are displayed. Record these for future use. You will use the Key to set the OAuthClientId and the Secret to set the OAuthClientSecret.

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 Bitbucket data with FileMaker using the CData ODBC Driver for Bitbucket

Once you configure the CData ODBC Driver for Bitbucket, you can connect to live Bitbucket data in FileMaker and use it in your applications. In this section, we'll walk through the steps to connect live Bitbucket 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 Bitbucket data using FileMaker's ODBC Import Function

Follow the steps below to easily import Bitbucket data using the ODBC import feature:

  1. Open FileMaker Pro. Navigate to Create from the left panel and select Blank > Create.
  2. Enter a desired filename and click Save.
  3. In the Manage Database window, go to the Tables tab and create or rename the table where you want to display Bitbucket data.
  4. In the Fields tab, add the required fields to the table.
  5. In the Relationships tab, define table relationships if your database has multiple tables, then click OK.
  6. To reopen and modify the table structure later, go to File > Manage > Database.
  7. To import Bitbucket data via the CData ODBC Driver for Bitbucket, navigate to File > Import Records > ODBC Data Source.
  8. In the Select ODBC Data Source window, choose CData ODBC Driver for Bitbucket and click Create. Enter your Bitbucket username and password, then click OK.
  9. 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 Bitbucket. 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.
  10. 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 Bitbucket data into FileMaker Pro using the CData ODBC Driver for Bitbucket. To perform incremental updates, change the import order to "Update" or use "Replace" based on your use case.

Process Bitbucket 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 Bitbucket 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:

  1. 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.
  2. 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 Bitbucket to integrate Bitbucket data into Claris FileMaker and work with Bitbucket data in your FileMaker applications.

Reach out to our Support Team if you have any questions.

Ready to get started?

Download a free trial of the Bitbucket ODBC Driver to get started:

 Download Now

Learn more:

Bitbucket Icon Bitbucket ODBC Driver

The Bitbucket ODBC Driver is a powerful tool that allows you to connect with live data from Bitbucket, directly from any applications that support ODBC connectivity.

Access Bitbucket data like you would a database - read, write, and update Bitbucket 0, etc. through a standard ODBC Driver interface.