Table of Contents

Why is my ZOHO integration not working?

Tony Updated by Tony

Why is my ZOHO integration not working?

Endpoint and token are not saved correctly/outdated
  • On "Settings", please add the API Endpoint URL and Bearer Token and click "Save"

The endpoint and token shall be available on your WATI Accounts' API Docs Section

The function in workflow is not configured correctly
  • For example, the below script in the function body
headerValue = Map();
headerValue.put("Authorization","{{your-bearer-token}}");
raw_data = {"template_name":"" + template_name + "","broadcast_name":"zoho_auto_" + template_name + "","parameters":"[{'name':'name', 'value': '" + name + "'}]"};
number = number.remove(" ");
number = number.remove("+");
number = number.remove("(");
number = number.remove(")");
number = number.remove("-");
resp = invokeurl
[
url :"{{your-wati-api-endpoint}}/api/v1/sendTemplateMessage/91" + number + "?SourceType=ZOHO"
type :POST
parameters:raw_data.toText()
headers:headerValue
detailed:true
content-type:"application/json"
];
info resp;

  • Another example of multiple parameters in the below script in the function body, by adding more parameters in a format like {'name':'phone', 'value': '" + name + "'} with comma in between parameters
headerValue = Map();
headerValue.put("Authorization","{{your-bearer-token}}");
raw_data = {"template_name":"" + template_name + "","broadcast_name":"zoho_auto_" + template_name + "","parameters":"[{'name':'name', 'value': '" + name + "'},{'name':'phone', 'value': '" + name + "'},{'name':'address', 'value': '" + name + "'}]"};
number = number.remove(" ");
number = number.remove("+");
number = number.remove("(");
number = number.remove(")");
number = number.remove("-");
resp = invokeurl
[
url :"{{your-wati-api-endpoint}}/api/v1/sendTemplateMessage/91" + number + "?SourceType=ZOHO"
type :POST
parameters:raw_data.toText()
headers:headerValue
detailed:true
content-type:"application/json"
];
info resp;
Note You must replace these values in the above script - {{your-wati-api-endpoint}} and {{your-api-token}} Please ensure updating the country code in the above example after /api/v1/sendTemplateMessage/

For more details on configuring function, please visit https://support.wati.io/l/en/article/o9n63qnsi2-zoho-crm-integration

The field of param value is incorrect
  • There are many fields in contacts/leads.

Please check if the fields are configured correctly.

How did we do?

Where can I find the API Endpoint URL and Bearer Token?

Contact