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





                            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 WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • 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