Home Glossary Zoho CRM Deluge Function
Zoho CRM

Deluge Function

A Deluge Function in Zoho CRM is a named, reusable block of Deluge code that performs a specific task. Functions can accept…

A Deluge Function in Zoho CRM is a named, reusable block of Deluge code that performs a specific task. Functions can accept parameters, execute logic, and return values. They are the building blocks of Custom Functions used in Workflow Rules, Blueprints, and other automation contexts.

Function Structure

A Deluge function is defined with the void keyword (for functions that do not return a value) or a return type. It accepts input parameters that are passed when the function is called. For example, a function that creates a Zoho Books invoice from a Deal record would accept the deal ID as a parameter and use it to fetch deal details before constructing the invoice payload.

Standalone vs Inline Functions

In Zoho CRM, Custom Functions are standalone Deluge scripts that are saved separately and linked to Workflow Rules or Blueprints. Deluge also supports defining helper functions within a script using the void functionName() syntax for code that is called multiple times within the same script.

Industry Example

Manufacturing: A manufacturer writes a Deluge function called calculateMargin that takes a deal’s selling price and cost price as parameters and returns the margin percentage. This function is called from multiple Workflow Rules (on deal creation, on quote approval) rather than duplicating the margin logic in each rule, keeping the calculation consistent and maintainable.

Frequently Asked Questions

What is a Deluge Function in Zoho CRM?

A Deluge Function is a named, reusable block of Deluge code that accepts parameters, executes logic, and optionally returns a value. Custom Functions in Zoho CRM Workflow Rules and Blueprints are Deluge Functions saved and linked to automation triggers.

Need help implementing this in Zoho?

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