Update employee using custom function

Update employee using custom function

I'm trying to update employee records using a custom function in Zoho People. Here is my function:
  1. updateMap = Map();
  2. updateMap.put("EmployeeID", "XXXXXX");
  3. updateMap.put("First_Name", "KKKK");
  4. info updateMap;
  5. response = zoho.people.update("employee", updateMap);
  6. 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.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Meet the Zoho People experts in your city!

                                                Dear users,   We are delighted to invite you to the Zoho People's user community meetup. We are stoked to visit our users in their cities and help them with all things Zoho People.   Join us for a day of insightful Zoho sessions, interactions with other


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now