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