{"id":3996,"date":"2026-05-29T19:32:21","date_gmt":"2026-05-29T19:32:21","guid":{"rendered":"https:\/\/aaxonix.com\/resources\/?post_type=glossary&#038;p=3996"},"modified":"2026-05-29T19:36:43","modified_gmt":"2026-05-29T19:36:43","slug":"custom-function-workflow-action","status":"publish","type":"glossary","link":"https:\/\/aaxonix.com\/resources\/glossary\/custom-function-workflow-action\/","title":{"rendered":"Custom Function (Workflow Action)"},"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-see-also { margin:0 0 32px; }\n.gt-see-also-item { border-bottom:1px solid #ddd8cf; padding:12px 0; }\n.gt-see-also-item:last-child { border-bottom:none; }\n.gt-see-also-item a { font-weight:600; color:#2563EB; text-decoration:none; }\n.gt-see-also-item p { margin:4px 0 0; font-size:0.875rem; color:#68605a; }\n.gt-faq { margin:0 0 40px; }\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\">\nA Custom Function in Zoho CRM is a Workflow Action that executes a snippet of Deluge code when a Workflow Rule fires. Unlike basic actions such as Field Update or Email Notification, Custom Functions can perform complex logic  &#8211;  calling external APIs, updating multiple related records, parsing responses, and making decisions based on field values.\n<\/div>\n<div class=\"gt-section\">\n<h2>What Custom Functions Can Do<\/h2>\n<p>Custom Functions run <a href=\"https:\/\/aaxonix.com\/resources\/glossary\/deluge-scripting\/\" class=\"sp-content-link\">Deluge Scripting<\/a> code in the context of the triggered record. They can: read and update any field on the CRM record or related records, call external HTTP APIs and process JSON responses, create child records in related modules, query CRM data using <a href=\"https:\/\/aaxonix.com\/resources\/glossary\/coql\/\" class=\"sp-content-link\">COQL<\/a>, and send notifications or invoke other Zoho services via Deluge&#8217;s built-in invokeurl and zoho.crm API calls.<\/p>\n<\/div>\n<div class=\"gt-section\">\n<h2>Custom Functions vs Webhooks<\/h2>\n<p>A <a href=\"https:\/\/aaxonix.com\/resources\/glossary\/webhook-crm\/\" class=\"sp-content-link\">Webhook<\/a> sends data to an external endpoint but does not process the response. A Custom Function can call the same external endpoint and then use the response to update CRM fields, create records, or trigger further actions. Custom Functions are also able to interact with other Zoho products (Books, Desk, Projects) without needing a separate Webhook or Flow setup.<\/p>\n<\/div>\n<div class=\"gt-section\">\n<h2>Industry Example<\/h2>\n<div class=\"gt-example-box\"><strong>Manufacturing:<\/strong> When a Deal moves to &#8220;Won&#8221;, a Custom Function runs to: (1) create a new Project in Zoho Projects, (2) create an Invoice in Zoho Books using the line items from the Quote, and (3) update the Account&#8217;s &#8220;Active Projects&#8221; count. All three actions happen in one automated step at deal closure.<\/div>\n<\/div>\n<div class=\"gt-section\">\n<h2>Related Terms<\/h2>\n<div class=\"gt-related-pills\">\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/workflow-rule\/\" class=\"sp-content-link gt-related-pill\">Workflow Rule<\/a><br \/>\n<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\/deluge-function\/\" class=\"sp-content-link gt-related-pill\">Deluge Function<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/webhook-crm\/\" class=\"sp-content-link gt-related-pill\">Webhook (CRM)<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/immediate-action-workflow\/\" class=\"sp-content-link gt-related-pill\">Immediate Action<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/scheduled-action-workflow\/\" class=\"sp-content-link gt-related-pill\">Scheduled Action<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/coql\/\" class=\"sp-content-link gt-related-pill\">COQL<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/blueprint-before-action\/\" class=\"sp-content-link gt-related-pill\">Blueprint Before Action<\/a><br \/>\n<a href=\"https:\/\/aaxonix.com\/resources\/glossary\/blueprint-after-action\/\" class=\"sp-content-link gt-related-pill\">Blueprint After Action<\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"gt-section gt-faq\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"gt-faq-item\">\n<h3>What is a Custom Function in Zoho CRM?<\/h3>\n<p>A Custom Function is a workflow action that runs Deluge code when a workflow rule fires. It can update CRM records, call external APIs, process responses, and interact with other Zoho products  &#8211;  making it the most powerful and flexible workflow action type.<\/p>\n<\/div>\n<div class=\"gt-faq-item\">\n<h3>Do I need coding experience to use Custom Functions in Zoho CRM?<\/h3>\n<p>Basic Deluge scripting experience is recommended. Deluge is a simple, JavaScript-like language designed specifically for Zoho. For complex integrations  &#8211;  such as syncing data with an ERP or performing multi-step logic  &#8211;  working with a Zoho implementation partner is advisable.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A Custom Function in Zoho CRM is a Workflow Action that executes a snippet of Deluge code when a Workflow Rule fires.\u2026<\/p>\n","protected":false},"template":"","meta":{"seo_title":"Custom Function (Workflow Action) | Zoho Glossary","seo_description":"A Custom Function in Zoho CRM is a Workflow Action that executes a snippet of Deluge code when a Workflow Rule fires. Unlike basic actions such as Field Up","seo_keyword":"custom function (workflow action)","seo_faqs":"[{\"q\": \"What is a Custom Function in Zoho CRM?\", \"a\": \"A Custom Function is a workflow action that runs Deluge code when a workflow rule fires. It can update CRM records, call external APIs, process responses, and interact with other Zoho products \u2014 making it the most powerful and flexible workflow action type.\"}, {\"q\": \"Do I need coding experience to use Custom Functions in Zoho CRM?\", \"a\": \"Basic Deluge scripting experience is recommended. Deluge is a simple, JavaScript-like language designed specifically for Zoho. For complex integrations \u2014 such as syncing data with an ERP or performing multi-step logic \u2014 working with a Zoho implementation partner is advisable.\"}]","term_type":"Technical","glossary_related":"","glossary_links":""},"glossary_category":[1238],"class_list":["post-3996","glossary","type-glossary","status-publish","hentry","glossary_category-zoho-crm"],"_links":{"self":[{"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/glossary\/3996","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=3996"}],"wp:term":[{"taxonomy":"glossary_category","embeddable":true,"href":"https:\/\/aaxonix.com\/resources\/wp-json\/wp\/v2\/glossary_category?post=3996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}