![]() |
VOOZH | about |
The CData JDBC Driver for Microsoft Dataverse implements JDBC Standards and enables a applications ranging from BI to IDE to connect with Microsoft Dataverse. In this article, we describe how to connect to Microsoft Dataverse data from Arkobi Digital RunMyProcess's DSEC and connect to Microsoft Dataverse in RunMyProcess.
CData provides the easiest way to access and integrate live data from Microsoft Dataverse (formerly the Common Data Service). Customers use CData connectivity to:
CData customers use our Dataverse 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 Dataverse data from their preferred data tools inside the Microsoft ecosystem (Power BI, Excel, etc.) or with external tools (Tableau, Looker, etc.).
Configure the EnterpriseConnect Agent following the EnterpriseConnect page in the RunMyProcess documentation.
The JDBC Adapter section describes the steps to connect to RDBMS through JDBC. Follow the steps and open the JDBC.config file.
CDS = {
"sqlDriver" : "...",
"sqlSource" : "...",
"sqlDriverPath" : "..."
}
For assistance in constructing the JDBC URL, use the connection string designer built into the Microsoft Dataverse JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.cds.jar
Fill in the connection properties and copy the connection string to the clipboard.
You can connect without setting any connection properties for your user credentials. Below are the minimum connection properties required to connect.
When you connect the Common Data Service OAuth endpoint opens in your default browser. Log in and grant permissions. The OAuth process completes automatically.
π Using the built-in connection string designer to generate a JDBC URL (Salesforce is shown.)#DBAgent Configuration
CDS = {"sqlDriver" : "cdata.jdbc.cds.CDSDriver", "sqlSource" = "jdbc:cds:OrganizationUrl=https://myaccount.crm.dynamics.com/;InitiateOAuth=GETANDREFRESH;","sqlDriverPath" = "cdata.jdbc.cds.jar" }
Put the JDBC driver JAR file (cdata.jdbc.cds.jar) into the same directory as unified-adapter-[version].jar.
π runmyprocessNote: Make sure to put the CData license file (cdata.jdbc.cds.lic) into the same directory. Since the license is generated based on the unique identifier of the machine where the product in installed, you will need an offline activation if you want to put the file on another machine.
In Windows, start RunMyProcess DigitalSuite EnterpriseConnect Agent in Windows services. To start the application through command line, see Starting the EnterpriseConnect Agent in the RunMyProcess documents.
Start the JDBC Adapter from runAdapter.bat. Once the Adapter is running, you can access the application through the agent address (e.g. 127.0.0.1:8080). Below is an example executing the command in Windows.
... > java -Djava.util.logging.config.file=./log.properties -cp lib/* org.runmyprocess.sec2.AdapterHandler : 2021-06-09 14:37:58|INFO|correlationId=|Searching for config file... 2021-06-09 14:37:58|INFO|correlationId=|Adapter Handler started with [JDBC] configuration 2021-06-09 14:37:59|INFO|correlationId=|agent address: 127.0.0.1:8080 2021-06-09 14:38:00.251:INFO::ConnectionThread: Logging initialized @1820ms to org.eclipse.jetty.util.log.StdErrLog 2021-06-09 14:38:00|INFO|correlationId=|onConnect() websocket connection between Agent and Adapter established
Once the DigitalSuite EnterpriseConnect Agent and JDBC Adapter are running, access http://localhost:(specified-port-number)/ through your browser to open the page shown below.
π runmyprocessCheck the availability of the JDBC Adapter using tools such as Postman or cURL. Here, we use Postman to send the HTTP POST request.
Configure the RequestHeader as follows:
Content-Type application/json
Configure the RequestBody as follows:
{
"protocol":"JDBC",
"data":{
"DBType":"CDS",
"sqlUsername":"",
"sqlPassword":"",
"sqlStatement":"SELECT * FROM Accounts"
}
}
If the JDBC.config file contains credential information, sqlUsername and sqlPassword can be left empty. If you are not sure of the table name, you can retrieve the list of tables using the request SELECT * FROM sys_tables
The request is successful if the Status is 200 and the Body contains Microsoft Dataverse data in JSON format.
π runmyprocessCreate a DigitalSuite Studio project and then create a Provider in the project.
Next, create a Connector in the Provider.
The JSON data we used as the Request body in JDBC Adapter:
{
"protocol":"JDBC",
"data":{
"DBType":"CDS",
"sqlUsername":"",
"sqlPassword":"",
"sqlStatement":"SELECT * FROM Accounts"
}
}
Open Launch Test to perform the test. The test is successful if Microsoft Dataverse data is shown in Result on the right pane.
π runmyprocessNow you can use Microsoft Dataverse data in RunMyProcess DigitalSuite Studio through DSEC.
For the detailed information on supported SQL commands, refer to the SQL Compliance section in our help documentation. For information on tables, refer to the Data Model section.
Download a free trial of the Microsoft Dataverse Driver to get started:
Download NowLearn more:
π Microsoft Dataverse IconRapidly create and deploy powerful Java applications that integrate with Microsoft Dataverse.