HI,
I''m writing a deluge script from Desk to create a task in CRM. All is good when I deal with a lead, but not when a contact is involved. It took me days to figure it out. It might be a bug.
Here is a snippet of my script
- // Ticket Description
- taskMap.put("What_Id",{"id":ticketContactId});
- taskMap.put("Description",ticketDescription);
- taskMap.put("Owner",{"email":ticketOwnerEmail});
- taskMap.put("Status","Not Started");
- taskMap.put("Subject",ticketSubject);
- taskMap.put("$se_module",se_module);
- info zoho.crm.createRecord("Tasks",taskMap);
when the customer is a CRM lead, then the variable se_module = "Leads";
when the customer is a CRM contact, then the variable se_module = "Contacts";
In the case of the deluge script, when the customer is a contact, and se_module = "Contacts", the editor returns
- {"api_name":"$se_module"},"message":"invalid data","status":"error"}
In fact, and this took me days to find out... the module name is NOT "Contacts" as mentioned in the doc, but "contacts" (no capitalization)!
However "Leads" is correct, not "leads"...
Either the documentation should be modified (module name is "contacts" and "Leads"). Or the case sentivity in Deluge should be changed to insentitive. Or module names should be all capitalized or none, but not mixed.
Regards,