Workflows not trigger when created by a function..
I can't figure out how to get my workflows that are set to be triggered on record creation to trigger when record is created using a function. The function creates a record in a custom module when deal is set to won, it works just fine. The workflows in the custom module do not trigger even though they are set to trigger on record creation. The workflows trigger just fine if I create a record manually.
Below is a the code.
//Create map of fields to pull.
mp = Map();
mp.put("Name",deal_name);
mp.put("Contact",contact_id);
mp.put("Account",account_id);
mp.put("Email",email);
//Create new record
response = zoho.crm.createRecord("Custom",mp);
info mp;
info response;