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!!

    Access your files securely from anywhere

        Zoho Developer Community




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


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • 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