Search for Ticket Number then populate fields

Search for Ticket Number then populate fields

Hi Zoho Team,


I would like to verify if this code is possible or what could have gone wrong.

What I'm trying to achieve here is to create a report that the user only inputs a ticket number then if record from desk was found, records will then be populated to the given fields.

Here's the attachments - code from WorkFlow.



-------------------------------------
Apart from the above mentioned, 
list DisplayDeskTickets()
{
tickets = invokeurl
[
type :GET
headers:{"orgID":680708905}
connection:"deskconnect"
];
info tickets;
outputList = list();
for each  Ticket in tickets.get("data")
{
if(true)
{
outputList.add(Ticket.get("subject"));
outputList.add(Ticket.get("email"));
outputList.add(Ticket.get("contact"));
}
}
return outputList;
}

the code here is for testing  -fetching a record for a specific ticket ID Number

Looking forward from your responses.

Thanks,

Israel

    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