Trigger Workflow, Approval Process, Blueprint by Deluge in Zoho CRM

Trigger Workflow, Approval Process, Blueprint by Deluge in Zoho CRM

#Tips & Trick

If you intend to activate your Workflow, Approval Process, or Blueprint through either the deluge script or Zoho CRM API during the creation, updating, or deletion of a record

Try this Script

  1. mp = Map();
  2. trigger = List();
  3. // Workflow
  4. trigger.add("workflow");
  5. // Approval Process
  6. trigger.add("approval");
  7. // Blueprint
  8. trigger.add("blueprint");
  9. OptionalMap = Map();
  10. OptionalMap.put("trigger",trigger);
  11. Resvp = zoho.crm.createRecord("Deals",mp ,OptionalMap);

or
  1. resvp = zoho.crm.createRecord("Deals",dealMap,{"trigger":["workflow","blueprint","approval"]});
----------------------------------------------------------------------------------------------------------------------------------

Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837