"message":"The value passed for the 'cf' parameter is invalid."}

"message":"The value passed for the 'cf' parameter is invalid."}

Team,
I am trying to write a custom function in Zoho flow to fetch ticket information from Zoho desk.  The function is expected to retrieve the custom field(cf_incident_key) data from Zoho desk.  some guidance here will be helpful. I have done various changes to code and got different exceptions. I am very new deluge

Function:
  1. list zd_fetch_ticket(string data)
  2. {
  3. queryValue = {"cf_incident_key":"$data"};
  4. response = zoho.desk.searchRecords(658229032,"tickets",{"cf":queryValue});
  5. return response;
  6. }
Based on the post:  tried options still didn't work. posted changes and exception below for reference.


  1. response = zoho.desk.searchRecords(deskOrgId,"tickets",{"cf":"cf_incident_key:data"});
  2. Argument type mismatch -Found '{"errorCode":"UNPROCESSABLE_ENTITY","message":"The value passed for the 'cf' parameter is invalid."}' 
  3. but Expected 'LIST'  at line number 7. Resolve the errors and try executing it again

  4. response = zoho.desk.searchRecords(deskOrgId,"tickets",{"customField1":"cf_incident_key:data"});
  5. Argument type mismatch -Found '{}' but Expected 'LIST'  at line number 7. Resolve the errors and try executing it again

  6. zoho.desk.searchRecords(deskOrgId, "tickets", {"customField1": "cf_incident_key:${data}"});
  7. Argument type mismatch -Found '{}' but Expected 'LIST'  at line number 7. Resolve the errors and try executing it again

  8. zoho.desk.searchRecords(deskOrgId, "tickets", {"cf": "cf_incident_key:${data}"});
  9. Argument type mismatch -Found '{"errorCode":"UNPROCESSABLE_ENTITY","message":"The value passed for the 'cf' parameter is invalid."}' but Expected 'LIST'  at line number 7. Resolve the errors and try executing it again
  10. zoho.desk.searchRecords(deskOrgId, "tickets", {"cf": {"cf_incident_key:${data}"}});
Thanks











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




                              ご検討中の方