Welcome to Portal

?Unknown\pull-down

Welcome to Zoho Cares

Bienvenido a Soporte de Zoho

Search our knowledge base, ask the community or submit a request.

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 plan

Add a Custom Function

  1. Click  in the top navigation bar.
  2. Navigate to Marketplace and click Custom Functions under Developer Space.
  3. Select Projects  from the drop-down.
  4. Click Create Custom Function.
  5. Enter a Function Name and a Description.
  6. Select a Layout and set the Arguments.
  7. 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.
  8. Click Save.
  9. Click Save and Execute to execute the custom function immediately.

Associate a Custom Function to a Workflow Rule

  1. Click  in the top navigation bar.
  2. Navigate to Project Automation and click Workflow Rules.
  3. Select a rule.
  4. Under Add Actions, click Associate Custom Function.
  5. You can associate an existing Custom Function or create a new one.
  6. Click Save Rule.

  1. You can add upto 25 custom functions per layout.
  2. A maximum of 25 parameters are allowed per custom function.
  3. 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.
  4. In a portal, a maximum of 5000 custom functions can be executed per day by Workflow Rule.
We have a few pre-defined gallery functions that are ready to use.
  1. Click  in the top navigation bar.
  2. Navigate to Marketplace and click Custom Functions under Developer Space.
  3. Select Projects from the drop-down box.
  4. Click on the drop-down next to the Create Custom Function button.
  5. Click Gallery Function.

  6. Hover over any of the listed functions and click Create.
  7. Change the description and arguments if needed.
    The deluge code is prefilled. The TODO lets users know the edits to the code before it can be executed.
  8. Click Save or Save and Execute to run the custom function.

  • 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.
  1. Hover over a custom function and then click icon.
  2. 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

Helpful?03
Updated: 4 months ago
Share :
1 comment

What is the syntax for the parameters when trying to execute a custom function via rest api?

As I understand, if I have a custom function for Tasks, all I need is a Task System ID to execute it; however there is no documentation on the API website for how to pass arguments to custom function with REST API enabled.