Guides
Zoho Deluge scripting: 8 practical examples for Zoho CRM
By Harikrishnan, Founder & Chief Zoho Consultant, Flowpeak · 10+ years in Zoho · Published · Last updated
Deluge is Zoho's scripting language for custom functions in Zoho CRM, Creator, Books and other apps. The most used patterns are fetching a record with zoho.crm.getRecordById, updating it with zoho.crm.updateRecord, searching with zoho.crm.searchRecords, creating related records, and calling outside services with invokeurl. Test every function on sample records and respect API limits.
Zoho CRM setup from USD 500Fixed price in writing. Every service has a published price.
- Registered Zoho partner
- Calls in your business hours
- 30 days of free fixes
When workflows and Blueprints are not enough, Deluge fills the gap. These are the patterns we use most on client projects. Field and module names are examples; use the API names from your own account.
Eight common patterns
| Task | Deluge example |
|---|---|
| 1. Fetch a record | deal = zoho.crm.getRecordById("Deals", dealId); |
| 2. Update a field | zoho.crm.updateRecord("Deals", dealId, {"Stage":"Closed Won"}); |
| 3. Search records | matches = zoho.crm.searchRecords("Contacts", "(Email:equals:" + email + ")"); |
| 4. Create a task | zoho.crm.createRecord("Tasks", {"Subject":"Follow up","Due_Date":today.addDay(2),"What_Id":dealId,"$se_module":"Deals"}); |
| 5. Call an external API | resp = invokeurl [ url: "https://api.example.com/rates" type: GET ]; |
| 6. Send an email | sendmail [ from: zoho.adminuserid to: "ops@example.com" subject: "New deal won" message: "Deal " + dealId + " was won." ]; |
| 7. Work with dates | renewal = deal.get("Closing_Date").toDate().addYear(1); |
| 8. Check before using a value | if (deal.get("Amount") != null) { amount = deal.get("Amount").toDecimal(); } |
Good practice
- Pass the record ID as an argument and fetch the full record inside the function
- Check for null values before using them
- Use connections, not hard-coded API keys, for outside services
- Log with info statements while testing and remove noisy logs after
- Watch daily API and function execution limits on your Zoho edition
- Keep functions small and name them clearly
When to call a partner
Deluge is approachable, but scripts that touch many records, run on schedules or call outside systems need careful testing. We write, test and document Deluge functions as part of implementations and integrations. Zoho CRM setup starts from USD 500.
Working with Flowpeak
We are based in Chennai, India and work remotely with businesses in the USA, Canada, the UK, Europe, the Gulf and India. We do not have local offices outside Chennai.
Want help putting this into practice? Flowpeak works as a Zoho CRM implementation partner, delivering remotely from Chennai. Book a free call to talk through your setup.
Free · 60 seconds
Get your Zoho plan
Four quick questions. See which Zoho apps fit, how long it takes and what it costs to start.
Step 1 of 4
What kind of business do you run?
Get a free Zoho audit
30 minutes with a senior Zoho consultant. No obligation.
- Fixed price in writing
- Paid by milestone
- 30 days of free fixes after go-live
- Registered Zoho partner
Frequently asked questions
What is Deluge?
Zoho's scripting language for custom logic across Zoho apps.
Where can Deluge run in Zoho CRM?
In workflow custom functions, buttons, Blueprint transitions, schedules and related lists.
Can Deluge call outside APIs?
Yes, with invokeurl and Zoho connections for authentication.
Are there limits?
Yes. API calls and function executions are limited by edition; check your account.
Is Deluge hard to learn?
The basics are simple; production scripts need testing and error handling.
Can Deluge update many records at once?
Yes, but use bulk APIs or schedules and watch limits.
Do you write Deluge for clients?
Yes, as part of implementations and integrations.
Where are you based?
Chennai, India. We work remotely.

