For Zoho services only


I'm currently part of a wider delivery team at Ascent Business Solutions, recognised as a leading Zoho Premium Solutions Partner in the United Kingdom.

Ascent Business Solutions support organisations with everything from targeted technical fixes through to full Zoho CRM implementations and long-term platform adoption. Working as a team rather than a one-person consultancy allows projects to move forward consistently, with access to the right skills at each stage.

The team I manage specialises in API integrations between Zoho and third-party finance and commerce platforms such as Xero, Shopify, WooCommerce, and eBay. Much of our work involves solving integration challenges that fall outside standard documentation, supporting new ideas, new sectors, and evolving business models.

Success is measured through practical outcomes and return on investment, ranging from scaling small operations into high-turnover businesses to delivering rapid gains through online payments, automation, and streamlined digital workflows.

If you are looking for structured Zoho expertise backed by an established consultancy, you can contact Ascent Business Solutions on 0121 392 8140 (UK), email info@ascentbusiness.co.uk, or visit https://www.ascentbusiness.co.uk.
Zoho Analytics: Sync with Unleashed over API

Zoho Analytics: Sync with Unleashed over API

What?
Thought I'd write an article to help me the next time I needed to connect the Unleashed inventory software API directly to Zoho Analytics and pull in the product catalogue.

Why?
In this case the client had over 30,000 products in Unleashed, with the possibility of several thousand products being updated at once from an Excel import.

I originally had a Zoho CRM function calling the Unleashed Products API, but this was limited by the CRM function execution time. Keeping the request size small enough to respond reliably meant pulling around 50 products at a time, which was not practical for a catalogue of this size.

Zoho Analytics can connect directly to a Web URL and import JSON, so the better approach was to let Analytics retrieve the product data directly from Unleashed.

How?
Unleashed requires an HMAC-SHA256 authentication signature generated from the exact query string being sent to the API.

I used the following small Zoho CRM function to generate the signature:

copyraw
string standalone.fn_Unleashed_GenerateSignature(int p_PageSize)
{
	v_ApiKey = "YOUR_UNLEASHED_API_KEY";

	v_Params = "includeObsolete=true&orderBy=CreatedOn&pageSize="+p_PageSize+"&sort=desc";

	v_ApiSignature = zoho.encryption.hmacsha256
	(
		v_ApiKey,
		v_Params,
		"base64"
	);

	return v_ApiSignature;
}
  1.  string standalone.fn_Unleashed_GenerateSignature(int p_PageSize) 
  2.  { 
  3.      v_ApiKey = "YOUR_UNLEASHED_API_KEY"
  4.   
  5.      v_Params = "includeObsolete=true&orderBy=CreatedOn&pageSize="+p_PageSize+"&sort=desc"
  6.   
  7.      v_ApiSignature = zoho.encryption.hmacsha256 
  8.      ( 
  9.          v_ApiKey, 
  10.          v_Params, 
  11.          "base64" 
  12.      )
  13.   
  14.      return v_ApiSignature; 
  15.  } 

The parameter order is important. The string used to generate the signature needs to match the order in which Zoho Analytics sends the query parameters.

In Zoho Analytics, create a new table using Import Data from Web URL and use the following settings:

copyraw
File Type:
JSON

URL:
https://api.unleashedsoftware.com/Products/1

Method:
GET

Authentication Type:
None
  1.  File Type: 
  2.  JSON 
  3.   
  4.  URL: 
  5.  https://api.unleashedsoftware.com/Products/1 
  6.   
  7.  Method: 
  8.  GET 
  9.   
  10.  Authentication Type: 
  11.  None 

Add the following headers:

copyraw
Accept                  application/json
Content-Type            application/json
api-auth-id             YOUR_UNLEASHED_API_ID
api-auth-signature      YOUR_GENERATED_SIGNATURE
client-type             yourcompany/productsync
  1.  Accept                  application/json 
  2.  Content-Type            application/json 
  3.  api-auth-id             YOUR_UNLEASHED_API_ID 
  4.  api-auth-signature      YOUR_GENERATED_SIGNATURE 
  5.  client-type             yourcompany/productsync 

Then add the following parameters:

copyraw
includeObsolete         true
orderBy                 CreatedOn
pageSize                2000  (the p_PageSize you specified in the function to generate the signature)
sort                    desc
  1.  includeObsolete         true 
  2.  orderBy                 CreatedOn 
  3.  pageSize                2000  (the p_PageSize you specified in the function to generate the signature) 
  4.  sort                    desc 

If Zoho Analytics changes the order of the parameters (at time of print it was sorting them alphabetically), regenerate the signature using that same order. An incorrect signature will normally result in a 403 response from the Unleashed API.

Once the connection is accepted, Zoho Analytics can import the returned JSON directly into a table. The Unleashed Products response contains the product records in the Items collection.

For larger catalogues, use pagination rather than trying to request the full product list in a single API call. Unleashed supports the page number in the URL path, for example:

copyraw
https://api.unleashedsoftware.com/Products/1
https://api.unleashedsoftware.com/Products/2
https://api.unleashedsoftware.com/Products/3
  1.  https://api.unleashedsoftware.com/Products/1 
  2.  https://api.unleashedsoftware.com/Products/2 
  3.  https://api.unleashedsoftware.com/Products/3 

This allows the product catalogue to be retrieved in manageable batches without relying on a long-running Zoho CRM function.

Caveat(s)
  • If you have over 10000 then you need to upgrade from Free to the Basic Zoho Analytics plan
  • If you want more than 1 sync per day you need to upgrade to the Standard Zoho Analytics plan

Source Log Work:

Category: Zoho Analytics :: Article: 1727

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com