Zapier to Zoho CRM Function: How to Pass Data Correctly?
Hi everyone,
I’m trying to understand the correct way to call a Zoho CRM Function from Zapier using the Zoho CRM Functions REST API.
The connection itself works now. Zapier can reach the function endpoint, and the function executes inside Zoho CRM. The remaining problem is that Zoho does not receive any of the JSON data that Zapier should send. The function always receives an empty request.
So I would like to know two things:
How should a Zoho CRM Function be structured so that it can correctly receive data from an external POST request (for example, from Zapier)?
How must the POST request from Zapier be structured so that Zoho CRM correctly fills the function’s input values?
Here is how my function is currently defined:
The function has this signature:
string standalone.find_or_create_person(Map request)
Inside the function, I read the data like this:
email = request.get(“email”)
first_name = request.get(“first_name”)
last_name = request.get(“last_name”)
phone = request.get(“phone”)
ansprache = request.get(“ansprache”)
If I execute this function manually inside Zoho and provide a JSON map, everything works perfectly. The function receives all data correctly.
However, when Zapier triggers the function, the request map inside Zoho is always empty. All fields such as email, first_name, last_name, phone and ansprache are null. Zapier shows the JSON fields correctly in the editor, but they do not appear in the actual POST body that arrives in Zoho.
This leads to my main questions:
Should a Zoho Function for external calls really use “Map request”, or should it use individually defined parameters like “String email, String first_name, String last_name, String phone, String ansprache”?
What JSON format does Zoho expect?
Should Zapier send fields at the root level, for example:
email: value, first_name: value, etc.
Or does Zoho expect a wrapper like “arguments: { email: … }”?Has anyone successfully created a working example of Zapier → Zoho Function and can share how the function and the POST step must look?
So in summary, I am looking for the correct combination of:
– how the Zoho Function must be defined
– how Zapier must format the JSON body
Any working example or concrete guidance would be extremely helpful.