"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:
- list zd_fetch_ticket(string data)
- {
- queryValue = {"cf_incident_key":"$data"};
- response = zoho.desk.searchRecords(658229032,"tickets",{"cf":queryValue});
- return response;
- }
Based on the
post: tried options still didn't work. posted changes and exception below for reference.
- response = zoho.desk.searchRecords(deskOrgId,"tickets",{"cf":"cf_incident_key:data"});
- 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
- response = zoho.desk.searchRecords(deskOrgId,"tickets",{"customField1":"cf_incident_key:data"});
- Argument type mismatch -Found '{}' but Expected 'LIST' at line number 7. Resolve the errors and try executing it again
- zoho.desk.searchRecords(deskOrgId, "tickets", {"customField1": "cf_incident_key:${data}"});
- Argument type mismatch -Found '{}' but Expected 'LIST' at line number 7. Resolve the errors and try executing it again
- zoho.desk.searchRecords(deskOrgId, "tickets", {"cf": "cf_incident_key:${data}"});
- 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
- zoho.desk.searchRecords(deskOrgId, "tickets", {"cf": {"cf_incident_key:${data}"}});
Thanks
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
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
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.