Can`t add Timentry to Ticket via API

Can`t add Timentry to Ticket via API

Hallo,

at the 08. August, i build a Creator Function, that added timeentrys to a Ticket on form input.
This works fine.

NOW i must use this function, but i become the Error: "Problem occured while processing the request"

my Code:

        ticketmap = Map();
        urltwo = " https://support.zoho.com/api/xml/timeentry/addrecords";

        XMLticketRequest = "<timeentry><row no=\"1\">";
        XMLticketRequest = XMLticketRequest + "<fl val=\"Ticket Charge Type\">" + "Customer Service" + "</fl>";
        XMLticketRequest = XMLticketRequest + "<fl val=\"TimeEntry Owner\">" + zoho.loginuserid + "</fl>";
        XMLticketRequest = XMLticketRequest + "<fl val=\"CASEID\">" + TicketID + "</fl>";
        XMLticketRequest = XMLticketRequest + "</row></timeentry>";

        ticketmap.put("authtoken","xxx");
        ticketmap.put("portal","yyy");
        ticketmap.put("department","zzz");
        ticketmap.put("xml",XMLticketRequest);

        TicketResponse = postUrl(urltwo,ticketmap);


Same is i make a HTML call:
https://desk.zoho.com/api/xml/timeentry/addrecords?
      authtoken=xxx&
      portal=yyy&
      department=zzz&
      xml=<timeentry>
            <row no=1>
                  <fl val="Ticket Charge Type">Customer Service</fl>
                  <fl val="TimeEntr">Owner"> me@you.com</fl>
                  <fl val="CASEID">111111111111111</fl>
            </row>
            </timeentry>

If i delete the red line, the response is: "CASEID cannot be NULL". Same with the other two lines.

I am realy sure, that the Authtoken, portal and pepartment is correct, becouse some other funktion to to add Tasks and Tickets are working.

Can everyone tell me what was wrong or what was changed in this time?!


Thank you!!


Kind regards,
Klaus Brandt

    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


                                              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