{"id":4059,"date":"2026-05-29T19:52:50","date_gmt":"2026-05-29T19:52:50","guid":{"rendered":"https:\/\/aaxonix.com\/resources\/?post_type=glossary&#038;p=4059"},"modified":"2026-05-29T19:52:50","modified_gmt":"2026-05-29T19:52:50","slug":"deluge-function","status":"publish","type":"glossary","link":"https:\/\/aaxonix.com\/resources\/glossary\/deluge-function\/","title":{"rendered":"Deluge Function"},"content":{"rendered":"<style>\n.gt-body { font-family:'Poppins',sans-serif; color:#111; line-height:1.75; }\n.gt-def { border-left:4px solid #E8650A; padding:16px 20px; background:#fff8f4; border-radius:0 8px 8px 0; margin:0 0 32px; font-size:1.05rem; }\n.gt-section { margin:0 0 36px; }\n.gt-section h2 { font-family:'Fraunces',serif; color:#0A1628; font-size:1.5rem; margin:0 0 12px; }\n.gt-section p { margin:0 0 12px; }\n.gt-example-box { background:#f0f4ff; border-radius:10px; padding:20px 24px; margin:0 0 32px; }\n.gt-example-box strong { color:#2563EB; }\n.gt-related-pills { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 32px; }\n.gt-related-pill { background:#f7f4ef; border:1px solid #ddd8cf; border-radius:20px; padding:6px 16px; font-size:0.875rem; color:#0A1628; text-decoration:none; transition:all .2s; }\n.gt-related-pill:hover { background:#0A1628; color:#fff; border-color:#0A1628; }\n.gt-faq-item { border:1px solid #ddd8cf; border-radius:10px; padding:16px 20px; margin:0 0 12px; }\n.gt-faq-item h3 { font-size:1rem; color:#0A1628; margin:0 0 8px; }\n.gt-faq-item p { margin:0; font-size:0.9rem; color:#444; }\n<\/style>\n<div class=\"gt-body\">\n<div class=\"gt-def\">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.<\/div>\n<div class=\"gt-section\">\n<h2>Function Structure<\/h2>\n<p>A Deluge function is defined with the <code>void<\/code> 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.<\/p>\n<\/div>\n<div class=\"gt-section\">\n<h2>Standalone vs Inline Functions<\/h2>\n<p>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 <code>void functionName()<\/code> syntax for code that is called multiple times within the same script.<\/p>\n<\/div>\n<div class=\"gt-section\">\n<h2>Industry Example<\/h2>\n<div class=\"gt-example-box\"><strong>Manufacturing:<\/strong> A manufacturer writes a Deluge function called <code>calculateMargin<\/code> that takes a deal&#8217;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.<\/div>\n<\/div>\n<div class=\"gt-section\">\n<h2>Related Terms<\/h2>\n<div class=\"gt-related-pills\"><a href=\"https:\/\/aaxonix.com\/resources\/glossary\/deluge-scripting\/\" class=\"sp-content-link gt-related-pill\">Deluge Scripting<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/custom-function-workflow-action\/\" class=\"sp-content-link gt-related-pill\">Custom Function (Workflow Action)<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/deluge-map-object\/\" class=\"sp-content-link gt-related-pill\">Deluge Map Object<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/deluge-list-object\/\" class=\"sp-content-link gt-related-pill\">Deluge List Object<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/deluge-invoke-url\/\" class=\"sp-content-link gt-related-pill\">Deluge invoke URL<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/coql\/\" class=\"sp-content-link gt-related-pill\">COQL<\/a>\n<\/div>\n<\/div>\n<div class=\"gt-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"gt-faq-item\">\n<h3>What is a Deluge Function in Zoho CRM?<\/h3>\n<p>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.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A Deluge Function in Zoho CRM is a named, reusable block of Deluge code that performs a specific task. Functions can accept\u2026<\/p>\n","protected":false},"template":"","meta":{"seo_title":"Deluge Function | Zoho CRM Glossary","seo_description":"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","seo_keyword":"deluge function zoho crm","seo_faqs":"[{\"q\": \"What is a Deluge Function in Zoho CRM?\", \"a\": \"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.\"}]","term_type":"Technical","glossary_related":"","glossary_links":""},"glossary_category":[1238],"class_list":["post-4059","glossary","type-glossary","status-publish","hentry","glossary_category-zoho-crm"],"_links":{"self":[{"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/glossary\/4059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/types\/glossary"}],"wp:attachment":[{"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/media?parent=4059"}],"wp:term":[{"taxonomy":"glossary_category","embeddable":true,"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/glossary_category?post=4059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}