How to Trigger Workflow Rules in Zoho CRM Using Deluge (Create, Update & Delete Guide)

Trigger Assignment and Workflow Rules in Zoho CRM via Deluge & API

How to Trigger Workflow Rules in Zoho CRM Using Deluge

When working with Zoho CRM automation, records created, updated, or deleted via Deluge do not trigger workflow or assignment rules automatically. This is expected behavior. Zoho CRM separates backend actions from UI-triggered automation to prevent loops and unintended executions.

If you want workflows to run during script execution, you must explicitly pass the correct parameters. This guide explains how to trigger workflows properly for create, update, and delete actions.


1. Trigger Workflow on Record Creation

To trigger workflow rules while creating a record using Deluge, include the trigger parameter inside the createRecord() function.


leadMap = {
"Last_Name":"Kumar",
"Email":"jitender@kalkillp.com",
"Phone":"+91XXXXXXXXXX"
};

response = zoho.crm.createRecord(
"Leads",
leadMap,
{"trigger" : ["workflow"]}
);

This ensures all workflows configured for the "On Create" trigger will execute.


2. Trigger Assignment Rule on Record Creation

To execute an assignment rule during record creation, pass the assignment rule ID using the lar_id parameter. You can find the assignment rule ID in the CRM URL while editing the rule.

Trigger Assignment Rule Only


response = zoho.crm.createRecord(
"Leads",
leadMap,
{"lar_id":"4409363000012741244"}
);

Trigger Both Workflow and Assignment Rule


response = zoho.crm.createRecord(
"Leads",
leadMap,
{
"trigger":{"workflow"},
"lar_id":"4409363000012741244"
}
);

3. Trigger Workflow on Record Update

Using zoho.crm.updateRecord() will NOT trigger workflows. To execute workflows on update, you must use the CRM API via invokeurl.


dataList = List();
updateMap = Map();
updateMap.put("Lead_Status","Qualified");
dataList.add(updateMap);

triggerList = List();
triggerList.add("workflow");

requestMap = Map();
requestMap.put("data", dataList);
requestMap.put("trigger", triggerList);

response = invokeurl
[
url :"https://www.zohoapis.com/crm/v2/Leads/"+leadId
type :PUT
parameters:requestMap.toString()
connection:"zoho_crm"
];

This forces Zoho CRM to process update-trigger workflows correctly.


4. Trigger Workflow on Record Deletion

To trigger workflows during record deletion, append wf_trigger=true to the delete API URL.


response = invokeurl
[
url: "https://www.zohoapis.com/crm/v2/Leads?ids="+leadId+"&wf_trigger=true"
type: DELETE
connection:"zoho_crm"
];

Without this parameter, delete-trigger workflows will not execute.


Why Zoho CRM Does Not Auto-Trigger Workflows

  • Prevents automation loops
  • Avoids mass email triggers during imports
  • Improves system performance
  • Ensures controlled backend execution

Quick Summary

ActionMethod to Trigger Workflow
Create Record{"trigger":["workflow"]}
Assignment Rule"lar_id":"AssignmentRuleID"
Update Recordinvokeurl with "trigger":["workflow"]
Delete Recordwf_trigger=true

Final Thoughts

If your Zoho CRM workflows are not triggering during Deluge execution, it is not an error — it is expected system behavior. Once you explicitly control workflow execution, your automation becomes predictable and stable.

    • Related Articles

    • Zoho Books vs Tally: Which is Right for Your Business in 2025?

      Overview: Why Compare Zoho Books and Tally in 2025? In 2025, modern businesses are moving fast—and their accounting software needs to keep up. Two widely used solutions in India are Tally and Zoho Books, but they differ significantly in approach, ...
    • Zoho Books API v3: Update Contact via Unique Custom Field

      Zoho Books API v3: Update Contact via Unique Custom Field Updating records via internal IDs can be a bottleneck. Zoho Books allows you to bypass the contact_id by using a Custom Field as a unique identifier. This endpoint also supports the Upsert ...
    • Zoho Books API v3: Automating Customer Statements via Email

      Zoho Books API v3: Automating Customer Statements via Email Account statements provide a consolidated view of all transactions (Invoices, Payments, and Credit Notes) for a specific period. The Email Statement API allows you to programmatically ...
    • Zoho Books API v3: Updating Organization Settings

      Zoho Books API v3: Updating Organization Settings Maintaining accurate business details is critical for compliance and professional branding. While many settings are configured during setup, your integration may need to update organization-level ...
    • Zoho Books API v3: Marking a Contact as Inactive

      Zoho Books API v3: Marking a Contact as Inactive In Zoho Books, you cannot delete a contact that has associated transactions (Invoices, Bills, or Payments). Instead, the best practice is to mark them as Inactive. This hides the contact from search ...