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.
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.
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.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.
Aaxonix is a certified Zoho implementation partner based in Pune. Architecture-first, no surprises.