How to integrate ManageEngine ServiceDesk Plus (Zoho) using Java
Learn how to quickly and efficiently connect ManageEngine ServiceDesk Plus (Zoho) with Java for smooth data access.
Read and write ServiceDesk Plus (Zoho) data effortlessly. Integrate, manage, and automate requests, tasks, comments, and worklogs — almost no coding required. You can do it all using the high-performance ManageEngine ServiceDesk Plus (Zoho) ODBC Driver for Java (often referred to as the ManageEngine ServiceDesk Plus (Zoho) Connector). How is this possible? You will connect to the ZappySys Data Gateway, which acts as a seamless bridge between the ODBC and JDBC layers. We'll walk you through the entire setup.
Ready to dive in? Download the product to jump right in, or follow the step-by-step guide below to see how it works.
Create data source in ZappySys Data Gateway
In this section we will create a data source for ManageEngine ServiceDesk Plus (Zoho) in the Data Gateway. Let's follow these steps to accomplish that:
-
Download and install ODBC PowerPack (if you haven't already).
-
Search for
gatewayin the Windows Start Menu and open ZappySys Data Gateway Configuration:
-
Go to the Users tab and follow these steps to add a Data Gateway user:
- Click the Add button
-
In the Login field enter a username, e.g.,
john - Then enter a Password
- Check the Is Administrator checkbox
- Click OK to save
-
Now we are ready to add a data source:
- Click the Add button
- Give the Data source a name (have it handy for later)
- Then select Native - ZappySys API Driver
- Finally, click OK
ManageengineServicedeskPlusZohoDSNZappySys API Driver
-
When the Configuration window appears give your data source a name if you haven't done that already, then select "ManageEngine ServiceDesk Plus (Zoho)" from the list of Popular Connectors. If "ManageEngine ServiceDesk Plus (Zoho)" is not present in the list, then click "Search Online" and download it. Then set the path to the location where you downloaded it. Finally, click Continue >> to proceed with configuring the DSN:
ManageengineServicedeskPlusZohoDSNManageEngine ServiceDesk Plus (Zoho)
-
Now it's time to configure the Connection Manager. Select Authentication Type, e.g. Token Authentication. Then select API Base URL (in most cases, the default one is the right one). More info is available in the Authentication section.
ManageEngine ServiceDesk Plus (Zoho) authentication
OAuth Connection for ManageEngine ServiceDesk Plus API [API reference]
To register custom App, perform the following steps (Detailed steps found in the help link at the end)- Go to Zoho API Console
- Click Add Client link
- Select Server-based Applications option
- Enter desired client name (Display purpose only)
- Enter some URL for Company homepage
- For Authorized Redirect URI enter https://zappysys.com/oauth (Or enter your own but we recommend using ZappySys one if possible). This URL must match on Zoho Connector UI.
- Click CREATE.
- Copy Client ID and Secret and paste on Zoho Connector UI.
API Connection Manager configuration
Just perform these simple steps to finish authentication configuration:
-
Set Authentication Type to
OAuth [OAuth] - Optional step. Modify API Base URL if needed (in most cases default will work).
- Fill in all the required parameters and set optional parameters if needed.
- Press Generate Token button to generate the tokens.
- Finally, hit OK button:
ManageengineServicedeskPlusZohoDSNManageEngine ServiceDesk Plus (Zoho)OAuth [OAuth]https://sdpondemand.manageengine.com/api/v3Optional Parameters ClientId ClientSecret Permissions SDPOnDemand.requests.ALL AccountUrl https://accounts.zoho.com RedirectUrl https://zappysys.com/oauth RetryMode RetryWhenStatusCodeMatch RetryStatusCodeList 429 RetryCountMax 5 RetryMultiplyWaitTime True
-
Once the data source connection has been configured, it's time to configure the SQL query. Select the Preview tab and then click Query Builder button to configure the SQL query:
ZappySys API Driver - ManageEngine ServiceDesk Plus (Zoho)Read and write ServiceDesk Plus (Zoho) data effortlessly. Integrate, manage, and automate requests, tasks, comments, and worklogs — almost no coding required.ManageengineServicedeskPlusZohoDSN
-
Start by selecting the Table or Endpoint you are interested in and then configure the parameters. This will generate a query that we will use in Java to retrieve data from ManageEngine ServiceDesk Plus (Zoho). Hit OK button to use this query in the next step.
SELECT * FROM Requests
Some parameters configured in this window will be passed to the ManageEngine ServiceDesk Plus (Zoho) API, e.g. filtering parameters. It means that filtering will be done on the server side (instead of the client side), enabling you to get only the meaningful datamuch faster . -
Now hit Preview Data button to preview the data using the generated SQL query. If you are satisfied with the result, use this query in Java:
ZappySys API Driver - ManageEngine ServiceDesk Plus (Zoho)Read and write ServiceDesk Plus (Zoho) data effortlessly. Integrate, manage, and automate requests, tasks, comments, and worklogs — almost no coding required.ManageengineServicedeskPlusZohoDSNSELECT * FROM Requests
You can also access data quickly from the tables dropdown by selecting <Select table>.AWHEREclause,LIMITkeyword will be performed on the client side, meaning that thewhole result set will be retrieved from the ManageEngine ServiceDesk Plus (Zoho) API first, and only then the filtering will be applied to the data. If possible, it is recommended to use parameters in Query Builder to filter the data on the server side (in ManageEngine ServiceDesk Plus (Zoho) servers). -
Click OK to finish creating the data source.
-
Once done, go to the Network Settings tab and Add a firewall rule for inbound traffic:
- This will initially allow all inbound traffic.
- Click Edit IP filters to restrict access to specific IP addresses or ranges.
-
Crucial Step: After creating or modifying the data source, you must:
- Click the Save button to persist your changes.
- Hit Yes when prompted to restart the Data Gateway service.
This ensures all changes are properly applied:
Skipping this step may cause the new settings to fail, preventing you from connecting to the data source.
Read data in Java from the DSN
-
Java code to get the data:
"jdbc:sqlserver://localhost:5000;databasename=ManageengineServicedeskPlusZohoDSN;user=john;password=test"
-
When you run the code it will make the API call and read the data:
-
Here is Java program's code in text format:
//Step-1: Install ZappySys ODBC PowerPack and Configure Data Gateway //Step-2:Assuming the Microsoft SQL Server JDBC Driver is in below folder //C:\Program Files\Microsoft Jdbc Driver 6.0 for SQL Server\sqljdbc_6.0\enu\auth\x64 package padaone; import java.sql.*; public class zappy { public static void main(String[] args) { // Create a variable for the connection string. String connectionUrl = "jdbc:sqlserver://localhost:5000;databasename=ManageengineServicedeskPlusZohoDSN;user=test;password=test"; // Declare the JDBC objects. Connection con = null; Statement stmt = null; ResultSet rs = null; try { // Establish the connection. Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); con = DriverManager.getConnection(connectionUrl); // Create and execute an SQL statement that returns some data. String SQL = "SELECT Country , SUM(UnitPrice * Quantity) Total " + "FROM value " + "GROUP BY Country " + "WITH (SRC='https://services.odata.org/V3/Northwind/Northwind.svc/Invoices?$format=json')"; stmt = con.createStatement(); rs = stmt.executeQuery(SQL); // Iterate through the data in the result set and display it. while (rs.next()) { System.out.println(rs.getString(1) + " " + rs.getString(2)); } } // Handle any errors that may have occurred. catch (Exception e) { e.printStackTrace(); } finally { if (rs != null) try { rs.close(); } catch (Exception e) {} if (stmt != null) try { stmt.close(); } catch (Exception e) {} if (con != null) try { con.close(); } catch (Exception e) {} } } }
Supported ManageEngine ServiceDesk Plus (Zoho) Connector actions
Got a specific use case in mind? We've mapped out exactly how to perform a variety of essential ManageEngine ServiceDesk Plus (Zoho) operations directly in Java, so you don't have to figure out the setup from scratch. Check out the step-by-step guides below:
- Delete Request
- Get Asset Details
- Get Assets
- Get Change Details
- Get Change Note Details
- Get Change Notes
- Get Change Task Comment Details
- Get Change Task Comments
- Get Change Task Details
- Get Change Task Worklog Details
- Get Change Task Worklogs
- Get Change Tasks
- Get Change Worklog Details
- Get Change Worklogs
- Get Changes
- Get Contract Details
- Get Contracts
- Get Problem Details
- Get Problem Note Details
- Get Problem Notes
- Get Problem Task Comment Details
- Get Problem Task Comments
- Get Problem Task Details
- Get Problem Task Worklog Details
- Get Problem Task Worklogs
- Get Problem Tasks
- Get Problem Worklog Details
- Get Problem Worklogs
- Get Problems
- Get Project Details
- Get Project Members
- Get Project Milestone Tasks
- Get Project Milestones
- Get Project Note Details
- Get Project Notes
- Get Project Task Comment Details
- Get Project Task Comments
- Get Project Task Details
- Get Project Task Worklog Details
- Get Project Task Worklogs
- Get Project Tasks
- Get Project Worklog Details
- Get Project Worklogs
- Get Projects
- Get Purchase Order Details
- Get Purchase Orders
- Get Release Details
- Get Release Note Details
- Get Release Notes
- Get Release Task Comment Details
- Get Release Task Comments
- Get Release Task Details
- Get Release Task Worklog Details
- Get Release Task Worklogs
- Get Release Tasks
- Get Release Worklog Details
- Get Release Worklogs
- Get Releases
- Get Request Details
- Get Request Note Details
- Get Request Notes
- Get Request Task Comment Details
- Get Request Task Comments
- Get Request Task Details
- Get Request Task Worklog Details
- Get Request Task Worklogs
- Get Request Tasks
- Get Request Worklog Details
- Get Request Worklogs
- Get Requests
- Get Task Details
- Get Tasks
- Test Connection
- Make Generic REST API Request
- Make Generic REST API Request (Bulk Write)
Conclusion
In this article we showed you how to connect to ManageEngine ServiceDesk Plus (Zoho) in Java and integrate data without writing complex code — all of this was powered by ManageEngine ServiceDesk Plus (Zoho) ODBC Driver.
Download ODBC PowerPack now or ping us via chat if you have any questions or are looking for a specific feature (you can also reach out to us by submitting a ticket):