Search records with Zoho Deluge and COQL
Search records with Zoho Deluge and COQL
Creating custom functions in Zoho CRM to perform complex searches, like counting the number of meetings associated with a contact within the current month, poses challenges for developers due to limitations in the standard Deluge search functions. Standard methods struggle with date range queries and do not support the direct counting of records in a collection.
A more effective strategy is to utilize the Zoho CRM Query Language (CoQL) alongside the invokeurl task.
The core issue is the difficulty of searching for records that fall "in" a specific period, such as the current month, using basic criteria. CoQL resolves this by providing the necessary tools to structure advanced queries, particularly the use of the between operator for defining date ranges.
For CoQL to function correctly, all date-time parameters must adhere to the ISO 8601 standard, including the timezone offset (e.g., 'YYYY-MM-dd'T'HH:mm:ss'-07:00'). By precisely defining the Startdate and Enddate in this format, you can accurately query the events for the "current month".
For detailed implementation steps and code examples, refer to this post.














