How do I create a function?
To create a function in Zoho Books:
- Go to Settings in the top right corner of the page.
- Select Workflow Actions under Automation.
- In the Workflow Actions pane, select Functions.
- Click + New Function in the top right corner.
- Enter a Name for your function and choose the Module for which you want to create it.
- Choose Deluge as the Programming Language and click Proceed. Enter or drag the parameters you need from the left sidebar of the script box into the editor. Once you complete the Deluge script, click Save.
The new function is saved, and you can associate it with a workflow rule that triggers it. Here’s how:
- Go to Settings in the top right corner of the page.
- Select Workflow Rules under Automation.
- Click + New Workflow Rule in the top right corner and set the trigger conditions for the rule.
- Under Actions, select Functions from the Type dropdown and choose your function from the Name dropdown.
- Click Save.
Whenever the criteria are met, the workflow rule is triggered, which in turn executes the function.