Custom Functions for Projects
Automate your project workflow using Custom Functions. A custom function is a software code that can be used to automate
a process. In Deluge, you can write your own function and call it from
one or more Workflow rules. It is similar to Javascript's built-in functions such as
DATE, CONCAT, REPLACE, and so on. Custom functions allow you to automate
a notification, call a webhook, or perform logic immediately after a
workflow rule is triggered. For e.g., a custom function can be used to archive a project whose status is marked as complete. To do so, you will need to write a custom function as shown in the image below and save it.

This custom function is then associated with a workflow rule. Select the Update as the option for the Execute On criteria in the Workflow. Set the criteria in the condition as Project Status is Completed and save the rule.

Now, when a projects status is changed to Completed, the workflow rule will trigger the custom function and archive the project automatically.
Feature Availability: Latest Enterprise planAdd a Custom Function
- Click
in the top navigation bar.
- Navigate to Marketplace and click Custom Functions under Developer Space.
- Select Projects from the drop-down.
- Click Create Custom Function.
- Enter a Function Name and a Description.
- Select a Layout and set the Arguments.
- Type in your code in the Deluge script
editor or drag and drop the parameters available in the left panel of
the editor and customize them.
- Click Save.
- Click Save and Execute to execute the custom function immediately.


Ensure that the portal URL aligns with your data centre. If not, the functions may not be executed as expected.
Associate a Custom Function to a Workflow Rule
- Click
in the top navigation bar.
- Navigate to Project Automation and click Workflow Rules.
- Select a rule.
- Under Add Actions, click Associate Custom Function.
- You can associate an existing Custom Function or create a new one.
- Click Save Rule.

- You can add upto 25 custom functions per layout.
- A maximum of 25 parameters are allowed per custom function.
- The maximum number of custom function
failure per day is 20. If a custom function's failure count is reached,
it will be disabled automatically, and the user who created the custom
function will be notified via email.
Gallery Functions
Supported Gallery Functions
Add Note to Linked CRM Account
Add a Note to Linked CRM Contact
Add Note to Linked CRM Deal
Sync Status Timeline to Analytics
Sync Due Date Changes to Analytics
Create Task
Create an Issue
Create a Milestone
Merge and Sign Documents Using a Zoho Writer
Merge and Store Documents Using a Zoho Writer
Send Message to a Slack Channel
Send Message to a Cliq Channel
Create an estimate in Zoho Invoice
Other Actions
Users can edit, delete, clone, or enable REST APIs for a custom function.
Hover over a custom function and then click

icon.
Select the required option and make the necessary changes.
Edit: Modify the existing custom function
Delete: Deleted the existing custom function
Clone: Create a copy of the custom function
Rest API: Enable the REST API url for the custom function.

See Also