You can set up custom functions in three steps:
- Create a custom function.
- Associate custom function to a workflow rule.
- Test custom functions integration.
To create a custom function
- Click Setup > Automation > Workflow > Custom Function.
- In the Custom Functions page, click the Configure Custom Function.
- In the Configure Custom Function page, select a function from Gallery, existing function or write a new one using Deluge Script.
- Click Save.
To associate custom function to a workflow rule
- Click Setup > Automation > Workflow Rules.
- In the Workflow Rules page, click the Create a Workflow Rule.
- In the Workflow Rule page, specify workflow rule parameters.
- Under Workflow Actions, select the custom function to be triggered.
- Click Save.