What Custom Functions Do
Deluge scripts that execute in response to workflow triggers, button clicks, or schedules. Extend CRM beyond declarative automation.
Invocation
From workflows, Related List buttons, Custom buttons, Schedulers, or other functions (nested). Trigger type determines input context.
Testing
Create a test data record. Run the function. Inspect logs. Deluge has a Function Log that captures each run with inputs/outputs.
Common Patterns
Complex validations, external API calls, bulk data transformations, rolling up related records. Don’t try to do everything in one function.
Governance
Document each function’s purpose and triggering context. Orphan functions accumulate. Quarterly review; deprecate unused ones.