Home Glossary Zoho Creator Deluge fetch records
Zoho Creator

Deluge fetch records

The Deluge fetch records statement retrieves records from a Creator form that match specified criteria, enabling scripts to read and process existing data.

What Is the Deluge fetch records Statement?

The fetch records statement is a Deluge data retrieval operation that queries records from a Creator form based on a criteria expression. It returns a list of matching records that the script can loop through, extract values from, or count. It is the standard way to read existing data from within a Creator workflow or function.

Syntax and Criteria

The basic syntax is records = FormName[CriteriaExpression];. The criteria can reference field values, comparison operators, and logical operators. For example, orders = Orders[Status == "Pending" && Customer == input.CustomerName]; retrieves all pending orders for the current submitter. The returned list supports iteration with for each loops and size checks with records.size().

Performance Considerations

Fetch records queries run against Creator’s data store on every execution. For forms with large record counts, adding indexed criteria fields improves query speed. Avoid fetching all records from a large form without criteria, as this can slow workflow execution and hit record fetch limits. Where possible, scope criteria to narrow the result set before iterating.

Need help implementing this in Zoho?

Aaxonix is a certified Zoho implementation partner based in Pune. Architecture-first, no surprises.