"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