What is Zoho Deluge?
Deluge is the scripting language built into Zoho’s apps. You write it in an editor inside the app, it runs on Zoho’s servers, and it can read and change records in Zoho CRM, Zoho Books, Zoho Creator and other Zoho apps, or call outside systems over HTTP.
The name is short for Data Enriched Language for the Universal Grid Environment, which nobody says out loud. What matters is that it was designed for business data, not general programming. You do not declare types, you do not manage servers, and most of the work is done by built-in tasks such as zoho.crm.getRecordById or zoho.books.createRecord. If you have written a spreadsheet formula or a little JavaScript, the syntax will look familiar within an hour.
That simplicity is also the trap. A Deluge script is still code. It can loop through thousands of records, use up your daily call allowance, or set off other automations. The examples below are written to be safe starting points, with the risky lines called out.
Where do Deluge scripts run in Zoho?
In Zoho CRM they run as functions called from workflow rules, Blueprint transitions, buttons, schedules or other functions. In Zoho Creator they run in form and report workflows. Zoho Books, Zoho Desk, Zoho Flow and several other apps have their own custom function screens.
- Zoho CRM functions. The most common home for Deluge. A function takes arguments, such as the ID of the deal that fired a workflow rule, and does the work. Button functions return a message the user sees on screen.
- Zoho CRM schedules. A function that runs at a set time or on repeat, with no record to start it, for example a nightly check for stale deals.
- Zoho Creator workflows. Scripts tied to form events such as On Validate, On Success, On User Input and On Load, plus scheduled and report workflows. Creator apps are mostly Deluge underneath.
- Zoho Books and other apps. Custom functions triggered by Books workflow rules, custom buttons and schedules. Zoho Flow can also run a Deluge step inside a no-code flow.
The language is the same everywhere, but the built-in variables change. In Creator you read the current form with input.Field_Name; in a CRM function you get an ID as an argument and fetch the record yourself. Keep that in mind when you move a script from one app to another.
Deluge basics you need before the examples
Five things cover almost every script: variables, maps (key and value pairs, which is how records arrive), lists, the for each loop with if conditions, and info for printing values while you test.
// A map holds field names and values, just like a record
lead = Map();
lead.put("Last_Name", "Rivera");
lead.put("Lead_Source", "Web Form");
// A list holds several values
states = List();
states.add("CA");
states.add("TX");
// Loop and decide
for each s in states
{
if(s == "CA")
{
info "West team";
}
else
{
info "Central team";
}
}
// Read a value back, with a fallback when it is empty
source = ifnull(lead.get("Lead_Source"), "Unknown");
Two habits save hours. Use ifnull() whenever a field might be empty, because a missing value breaks math and text joins. And use info generously while testing: everything it prints shows in the output panel when you click Save and Execute, so you can see what the script actually received.



