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




                              ご検討中の方