Ready to get started?

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

 Download Now

Learn more:

Basecamp Icon Basecamp ODBC Driver

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

Access Basecamp like you would a database - read, write, and update Projects, People, Documents, Messages, etc. through a standard ODBC Driver interface.

Connect to Basecamp Data from PowerBuilder



This article demonstrates how to use the CData ODBC Driver for Basecamp to connect to Basecamp data and execute queries in PowerBuilder.

The CData ODBC Driver for Basecamp can be used from any platform or development technology that supports ODBC, including PowerBuilder. This article shows how to connect to Basecamp data and execute queries from the Database Painter and controls such as the DataWindow.

Connect to Basecamp as an ODBC Data Source

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.

Basecamp uses basic or OAuth 2.0 authentication. To use basic authentication you will need the user and password that you use for logging in to Basecamp. To authenticate to Basecamp via OAuth 2.0, you will need to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties by registering an app with Basecamp.

See the Getting Started section in the help documentation for a connection guide.

Additionally, you will need to specify the AccountId connection property. This can be copied from the URL after you log in.

Create a Profile for the ODBC Driver for Basecamp

Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for Basecamp. In the Database Painter, you can use wizards and the UI to work with Basecamp data.

  1. In PowerBuilder, click Tools -> Database Painter.
  2. In the Objects window in the Database Painter, right-click the ODBC node and click New Profile.
  3. On the Connection tab, enter a name for the profile and select the Basecamp DSN in the Data Source menu.
  4. To view and modify a table, right-click a table and then click Edit Data -> Grid.

Using Basecamp Data with PowerBuilder Controls

You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Basecamp data into a DataWindow. You can add the following code to the open method:

SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData Basecamp Source'" CONNECT USING SQLCA; dw_projects.SetTransObject(SQLCA); dw_projects.Retrieve();