Get the context ticket ID to move it to a different department using custom functions.

Get the context ticket ID to move it to a different department using custom functions.

Hi,
My goal is to move a ticket from one department to another on a field update, using custom functions.

I'm picturing the ticket as an object, so when I have it opened in front of me, and I want to apply the function to it, how do I pass the ticket ID argument to the function?

Basically the answer to this question is, what is the right variable to be used instead of {ticketid}?
OrgID and DepartmentID are static values, and I know where to get them.

response = zoho.desk.ticket.move(6x62x60x, {ticketid}, 4x74x700xx006x07);

Thank you.
    Zoho Marketing Automation
            • Sticky Posts

            • Function #41: Sync Associated Subforms!

              Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",

            Zoho Pagesense Resources

              Zoho SalesIQ Resources



                    Zoho TeamInbox Resources

                      Zoho DataPrep Resources



                        Zoho CRM Plus Resources

                          Zoho Books Resources


                            Zoho Subscriptions Resources

                              Zoho Desk Resources

                                Zoho Projects Resources


                                  Zoho Sprints Resources


                                    Qntrl Resources


                                      Zoho Creator Resources


                                        Zoho WorkDrive Resources




                                            Zoho Campaigns Resources

                                              Zoho CRM Resources

                                                      Design. Discuss. Deliver.

                                                      Create visually engaging stories with Zoho Show.

                                                      Get Started Now