ticketID = 22360000000349752;
portal = "boltenergie";
department = "Bolt NL";
ticket = zoho.support.getRecordById("Requests",portal,department,ticketID);
info "-------------Ticket----------\n";
info ticket;
info '\n';
if(ticket.get("CASEID") != null)
{
contactID = ticket.get("CONTACTID").toLong();
channel = ifNull(ticket.get("Mode"),"");
language = ifNull(ticket.get("Language"),"");
// Get Corresponding Contact
correspondingContact = zoho.support.getRecordById("Contacts",portal,department,contactID);
info "-------------correspondingContact----------\n";
info correspondingContact;
info '\n';
response = zoho.support.updateRecord("Contacts",portal,department,contactID,correspondingContact);
info "-------------response----------\n";
info response;
info '\n';
}