Create Lead in Zoho CRM from Zoho Flow executing the Assignment Rules
When creating a Lead in Zoho CRM from a Zoho Flow, the workflows are not triggered.
To solve this problem, the solution consist in creating a custom function in Zoho Flow to create the Lead in the CRM, passing "Trigger" parameters.
Here is an example:
void CreateLeadWithAssignRule(string sLastName, string sEmail)
{
sRuleID = "199073000001116094";
mapLead = Map();
mapLead.put("Last_Name",sLastName);
mapLead.put("Email",sEmail);
Response = zoho.crm.createRecord("Leads",mapLead,{"trigger":{"workflow","blueprint","approval","orchestration"},"lar_id":sRuleID});
}
Where "lar_id" is the ID of the Assignment Rule in the CRM.