How to update custom field in Zoho Desk Schedule?

How to update custom field in Zoho Desk Schedule?

Hello everyone,

I have a problem right now with Deluge coding. I found some information about the update function, but it's still not working for me. Link: https://www.zoho.com/deluge/help/desk/update-record.html 

I have hided custom_field and org_id in my code.

My code:

ticket = zoho.desk.getRecordById(org_id, "Tickets", 1271);


updatedTicket = zoho.desk.update(org_id, "Tickets", 1271, custom_field);


updateTicket.custom_field = 1;


info updatedTicket;


Error: Variable 'custom_field' is not defined. LineNumber : 3

If you have any idea what can be wrong, then I would like to hear it. I think it could be my ID, which I am passing because, for example, it's a long id. In this case, I am using my id - the ticket id which is visible in Zoho Desk.

Have a nice day!

Best regards,
Vladimir