Trying to access records in a custom module in Zoho Desk and not having luck
I've built a custom module in Zoho Desk and am using a custom function to query the records in the module and I'm not having any luck. The only way I have found to retreive a record is by getting it by its recordID (the long zoho assigned one). The function is called via a "button" on the desk ticket. It passes in the necessary parameters (which is working) but always returns 0 records. Im using invokeURL with this as the completed url:
https://desk.zoho.com/api/v1/search?module=<module name>&criteria=<criteria>
criteria is set earlier as criteria = "(cf_status:equals:" + STATUS_ACTIVE + ")";
which resolves to cf_status:Active
This call always returns 0 records.
Now, if I do the same thing but search for the record id, it will return the record.
This syntax also does not work: resp = zoho.desk.searchRecords(ORG_ID, "cm_pro_services_pools", searchMap);
How can I get records in a custom module using deluge in a custom function written in Zoho Desk?