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

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly 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




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方