Zoho Inventory

Connections

Connections is a tool that is used to connect Zoho Inventory with third party services to access authenticated data. To establish a connection, you will have to provide a Connection Name, Authentication Type, amongst other details. In Zoho inventory, you can create connections to access data from multiple sources.


Set up Connections

To set up a connection in Zoho Inventory:

Connections

Insight: The Connections option is currently available only in Custom Functions as of now in Zoho Inventory.


Types of Connections

There are two types of connections in the create connections page:

Predefined Connections

You can find the predefined connections under the Pick Your Service tab. Predefined connections are the third party services that Zoho Inventory is already connected with. You will have to enter only the basic details required to set up the connection.

To set up a predefined connection:

Connections - Predefined Connections - Predefined Details

Custom Connections

To create a Custom Service connection, you need to do the following (assuming OAuth 2 as the authentication protocol):

  1. Register an OAuth client in Zoho Accounts.
  2. Create a connection using details from the newly registered client.
1. Register an OAuth client

You can register a new OAuth client from the developer console. The steps on how to register the client will be provided in the help document. While registering the client, you will be asked for a redirect URL. Please provide the following URL: https://deluge.zoho.com/delugeauth/callback.

2. Create the connection

Once a client has been registered, you will have to go to the Custom Service tab and fill in the required details to create the connection:

Fields Description
Service Name Name of the service to which you wish to connect.
Authentication Type The protocol used for authentication.
Param Type The authentication parameter that is added during API calls while making a connection.
Client ID The unique identification of the client. This can be obtained when registering the client.
Client Secret It is a secret used by the OAuth client to authenticate to the authorization Server. This can be obtained when registering the client.
Authorize URL The URL of the page that lists the scopes you have selected. This page prompts the user to grant permission to delegate the access to the user.
Access Token URL The URL used to generate access tokens from refresh token.
Refresh token URL The URL used to generate refresh token.
Connection Name The name of the connection. The link name is derived from connection name and will subsequently be used in custom script.
Scope The permissions requested to the third-party service. You will have to provide a comma separated list of OAuth scopes of the third-party app. It’s the list of actions you wish to access.
Connections - Custom

Now the connection has been authenticated and is ready for use.


Use Connections in Custom Scripts

Once a connection has been authenticated by the admin, it can be used in the custom scripts. In the connection details page where the connections were created, you will find a code snippet that shows how to use that connection to communicate with the third-party service.

You can copy and paste this code snippet in the required places of the deluge script in Zoho Inventory.

Connections - Code Snippet
TOP