Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Integrate with Live Kintone Data in MuleSoft (via CData Connect Cloud)
Use CData Connect Cloud to connect to Kintone from the MuleSoft Anypoint Platform to integrate live Kintone data into custom reports and dashboards.
The MuleSoft Anypoint Platform enables the building, deployment, and management of APIs and integrations, facilitating seamless connectivity across applications and systems. When combined with CData Connect Cloud, it provides access to Kintone data for visualizations, dashboards, and more. This article explains how to use CData Connect Cloud to create a live connection to Kintone and how to connect and access live Kintone data from the MuleSoft Anypoint Platform.
Prerequisites
Before configuring and using MuleSoft with CData Connect Cloud, you must first connect a data source to your CData Connect Cloud account. For more information, see the Connections section.
Additionally, you need to generate a Personal Access Token (PAT) on the Settings page. Be sure to copy it down, as it serves as your password during authentication.
Configure Kintone Connectivity for MuleSoft
Connectivity to Kintone from MuleSoft is made possible through CData Connect Cloud. To work with Kintone data from MuleSoft, we start by creating and configuring a Kintone connection.
- Log into Connect Cloud, click Connections and click Add Connection
- Select "Kintone" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Kintone.
In addition to the authentication values, set the following parameters to connect to and retrieve data from Kintone:
- Url: The URL of your account.
- GuestSpaceId: Optional. Set this when using a guest space.
Authenticating with Kintone
Kintone supports the following authentication methods.
Using Password Authentication
You must set the following to authenticate:
- User: The username of your account.
- Password: The password of your account.
Using Basic Authentication
If the basic authentication security feature is set on the domain, supply the additional login credentials with BasicAuthUser and BasicAuthPassword. Basic authentication requires these credentials in addition to User and Password.
Using Client SSL
Instead of basic authentication, you can specify a client certificate to authenticate. Set SSLClientCert, SSLClientCertType, SSLClientCertSubject, and SSLClientCertPassword. Additionally, set User and Password to your login credentials.
- Click Create & Test
- Navigate to the Permissions tab in the Add Kintone Connection page and update the User-based permissions.
With the connection configured, you are ready to connect to Kintone data from MuleSoft.
Connecting to CData Connect Cloud
Follow these steps to establish a connection from Mulesoft to CData Connect Cloud through the JDBC driver:
- Download and install the CData Connect Cloud JDBC driver.
- Open the Client Tools page of CData Connect Cloud.
- Locate MuleSoft and click on Download for Mac/Windows/Linux.
- Download and run the setup file.
- When the installation is complete, the JAR file can be found in the installation directory (inside the lib folder).
- Log into Mulesoft Anypoint Studio or launch the desktop application.
- Create a new Mulesoft project. The new project appears in a project folder.
- In the Mule Palette located on the right, drag an HTTP Listener to the Message Flow area.
- Click on the HTTP Listener to configure it.
- Click the + sign on the right of Connector configuration. The HTTP Listener config dialog appears.
- Configure the HTTP Listener, providing a Port on which to query your data, and click OK.
- Provide a path on which to perform the actions. The HTTP Listener is now configured.
- In the Mule Palette on the right, type database in the search bar.
- Drag the database operation you want to perform to the Message Flow area. For this example, we choose Select.
- Select Generic Connection from the Connection dropdown in the Database Config dialog.
- Click the Configure button to configure the JDBC driver. Select Use local file from the drop-down list.
- Locate the CData Connect Cloud JAR file from the JDBC driver installation and click OK.
- Provide the following information:
- URL: the URL for the connection, for example:
jdbc:connect:Authscheme=Basic;user=username;password=password
Note: the password is the PAT created in the Prerequisites section. - Driver class name: Enter the Driver class name as:
cdata.jdbc.connect.ConnectDriver
- URL: the URL for the connection, for example:
- Click Test Connection.
- If the connection is successful, provide the SQL Query Text in the editor. You can see the table metadata on the right side in the Output tab.
- In the Mule Palette, drag Transform Message to the Message Flow area.
- Click Transform Message to configure it. Change the Output as follows:
- Save your project and run it. In the console, Mulesoft starts initializing the dependencies.
- Once you see the message, "Message source 'listener' on flow your_project_name successfully started", you can start querying your data at the endpoint you provided.
- Query to check out the data using the Postman application (as shown below).
SQL Access to Kintone Data from Cloud Applications
Now you have a direct connection to live Kintone data from MuleSoft Anypoint Platform. You can create more connections to ensure seamless data flow, automate business processes, and manage APIs - all without replicating Kintone data.
To get real-time data access to 100+ SaaS, Big Data, and NoSQL sources (including Kintone) directly from your cloud applications, explore the CData Connect Cloud.