Error Performing Transition Via API

Error Performing Transition Via API

Hello,

I have a custom function in Zoho Desk that will transition tickets. The function was working great until I made two of the transitions common. I am able to transition it from the Original state via the function, but not from the newly added common state. I revoked the blueprint on the ticket, put it back in, turned off the blueprint, turned it back on. Additionally, I am able to manually transition the ticket, but get the following error in my function:

{"errorCode":"UNPROCESSABLE_ENTITY","message":"Validation failed for the condition : Exception occured while performing transition : 488467000042394165 for the entity : 4*************** : BP_E17:Exception while performing transition : 488467000042394165: BP_E18:This transition can't be performed from the given state: 488467000042394145"}

I noticed that the API documentation is lacking on this topic. But here is what works for the original states:
transitionTicket = invokeurl
[
url :"https://support.zoho.com/api/v1/tickets/" + ticketId + "/transitions/" + transitionId + "/perform?portalname=************"
type :POST
parameters:params
connection:"********"
];
info "Transition Ticket: " + transitionTicket + "";

Thanks for your help!!

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          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 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 コンテンツ



                                ご検討中の方