![]() |
VOOZH | about |
The CData ODBC Driver for Dynamics CRM can be used from any platform or development technology that supports ODBC, including PowerBuilder. This article shows how to connect to Dynamics CRM data and execute queries from the Database Painter and controls such as the DataWindow.
CData simplifies access and integration of live Microsoft Dynamics CRM data. Our customers leverage CData connectivity to:
CData customers use our Dynamics CRM connectivity solutions for a variety of reasons, whether they're looking to replicate their data into a data warehouse (alongside other data sources) or analyze live Dynamics CRMa data from their preferred data tools inside the Microsoft ecosystem (Power BI, Excel, etc.) or with external tools (Tableau, Looker, etc.).
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.
The connection string options meet the authentication and connection requirements of different Dynamics CRM instances. To connect to your instance, set the User and Password properties, under the Authentication section, to valid Dynamics CRM user credentials and set the Url to a valid Dynamics CRM server organization root. Additionally, set the CRMVersion property to 'CRM2011+' or 'CRMOnline'. IFD configurations are supported as well; set InternetFacingDeployment to true.
Additionally, you can provide the security token service (STS) or AD FS endpoint in the STSURL property. This value can be retrieved with the GetSTSUrl stored procedure. Office 365 users can connect to the default STS URL by simply setting CRMVersion.
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for Dynamics CRM. In the Database Painter, you can use wizards and the UI to work with Dynamics CRM data.
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Dynamics CRM data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData DynamicsCRM Source'" CONNECT USING SQLCA; dw_account.SetTransObject(SQLCA); dw_account.Retrieve();
Download a free trial of the Dynamics CRM ODBC Driver to get started:
Download NowLearn more:
👁 Dynamics CRM IconThe Dynamics CRM ODBC Driver is a powerful tool that allows you to connect with live Dynamics CRM (OnPremise & Online) account data, directly from any applications that support ODBC connectivity.
Access Dynamics CRM data like you would a database - read, write, and update Leads, Contacts, Opportunities, Accounts, etc. through a standard ODBC Driver interface.