An internal server error occurred while performing this operation
Hello,
I created this function as automation when a ticket is created.
- queryValue = {"":""};
- getaticket = zoho.desk.getRelatedRecords(20067793560,"threads","tickets",TicketId,1,10,queryValue);
- dataticket = getaticket.get("data");
- idthreads = dataticket.tomap().get("id");
- get_thread = zoho.desk.getRelatedRecordById(20067793560,"threads",idthreads.toLong(),"tickets",TicketId);
- content = get_thread.get("content");
- threads_id = get_thread.get("id");
- infoticket = content.getPrefix("#########________#######");
- realcontent = content.getSuffix("#########________#######");
- infoticket = infoticket.replaceAll("<div><div style=\"display: none;\">","");
- productList = infoticket.toList("-*-*-");
- dueDate = productList.get(0);
- teamId = productList.get(1);
- subjects = productList.get(2);
- departmentId = productList.get(3);
- priority = productList.get(4);
- contactId = productList.get(5);
- category = productList.get(6);
- subCategory = productList.get(7);
- idassegna = productList.get(8);
- recordValues = Map();
- recordValues.put("dueDate",dueDate);
- recordValues.put("teamId",teamId);
- recordValues.put("subject",subjects);
- recordValues.put("departmentId",departmentId);
- recordValues.put("priority",priority);
- recordValues.put("contactId",contactId);
- recordValues.put("category",category);
- recordValues.put("subCategory",subCategory);
- recordValues.put("assigneeId",idassegna);
- updateticket = zoho.desk.update(20067793560,"tickets",TicketId,recordValues);
- sendmail
- [
- from :zoho.adminuserid
- to :zoho.adminuserid
- subject :"esito funzione"
- message : recordValues + "<br><br> " + updateticket
- ]
- info updateticket;
I made the text with the function by inserting the number as a ticket:
I'm getting this error why?
- {"errorCode":"INTERNAL_SERVER_ERROR","message":"An internal server error occurred while performing this operation."}