Update employee using custom function
I'm trying to update employee records using a custom function in Zoho People. Here is my function:
- updateMap = Map();
- updateMap.put("EmployeeID", "XXXXXX");
- updateMap.put("First_Name", "KKKK");
- info updateMap;
- response = zoho.people.update("employee", updateMap);
- info response;
When I try to run this function I always get this error:
{"response":"{\"message\":\"Error occurred\",\"uri\":\"/api/forms/json/employee/updateRecord\",\"errors\":{\"code\":7204,\"message\":\"Wrong datatype for the Parameter Input\"},\"status\":1}"}
I'm just trying to update a simple field whose data type is String. What is the meaning of this error? I tried to update different fields and always get the same error.