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.

Triggers, Events, and Functions

Triggers are used to respond to an event. Create triggers to associate Functions with Events. Let's say you want to trigger an email when a task is created. You can create a send mail function. Next, create a trigger and associate the send mail function with the create a task event. An email will be sent when a task is created. Zoho Projects supports the following events:

Extension triggers: 
  1. Run an extension
  2. Stop and extension
  3. Install an extension
  4. Uninstall an extension
  5. Disable an extension
  6. Enable an extension
  7. Update an extension
  8. Upgrade an extension
Project triggers: 
  1. Create a project
  2. Update a project field
  3. Add comment to a project
  4. Archive a project
  5. Unarchive a project
  6. Delete a project 
Task triggers: 
  1. Delete a task
  2. Create a task
  3. Add comment to a task
  4. Update a task field
  5. Attach a task document
Other triggers: 

Create a function

Functions let you customize your extensions by connecting other cloud services. Functions can be associated with events in Zoho Projects such that they are triggered when a particular event takes place. Let's create a sample function to send an email.
  1. Navigate to Functions module and click Add Function in the top right corner.
  2. Enter a function name and give a description.
  3. Click Create.
  4. Open the newly created function.
  5. Drag and drop the send mail function under the Notifications section.
  6. Specify the sender and recipient email address, the email subject, and the main text.
  7. Click Edit to add place holders to your email.
  8. Click Update.


To fetch the details of the current task, use data.get("task_detail");

Create a trigger

  1. Navigate to Extension module and hover over your extension and then click .
  2. Navigate to Triggers and then click Add Trigger.
  3. Enter a name for your trigger.
  4. Select the event for which you want the trigger to be fired.
  5. Select a function to associate with your trigger.
  6. Choose the function version.
  7. Click Create

Helpful?00
Updated: 3 months ago
Share :