Automate your time logs workflow using Custom Functions. A custom function is a piece of Deluge code that can be used to automate a process. You can write your own function and call it from one or more workflow rules, similar to built-in functions in programming languages. In Zoho Projects, custom functions allow you to automate notifications, call webhooks, or perform logic right after a workflow rule is triggered for a time log.
Feature Availability: Latest Enterprise and Ultimate plan.
Benefits
- Notify users via email or Zoho Cliq when a time log status changes.
- Automatically add a comment to a time log when a key field is updated.
- Integrate with Zoho apps and third-party apps in response to time log events.
Add a Custom Function
- Click Setup (
) in the top navigation bar.
- Navigate to Custom Functions under Developer Space.
- Select Time Logs from the dropdown.
- Click New Custom Function.
- Enter a Function Name and Description.
- Set the Arguments.
- Type your code in the Deluge script editor, or drag and drop the parameters from the left panel and customize them.
- Click Save.
Associate a Custom Function with a Workflow Rule
- Click Setup (
) in the top navigation bar. - Navigate to Automation > Workflow Rules.
- Click the Time Logs tab, select a rule, and click Add Action.
- Click Associate Custom Function.
- Select the custom function and click Save Rule.
Execute a Custom Function
- Click Setup (
) in the top navigation bar. - Navigate to Developer Space and click Custom Functions.
- Select the Time Logs tab and click the function you want to execute.
- Click Save and Execute at the bottom.
- Enter the required argument (e.g., Time Log ID).
- Click Execute.
Test Custom Function
- Add test data in Zoho Projects that matches your workflow rule criteria.
- Check for updates received in your application via the notification triggered by the custom function.
- If there is an error, modify the custom function and retest.
- Continue testing until you get the correct output.
You can add up to 10 arguments per custom function.