CRM module name capitalisation bug ?

CRM module name capitalisation bug ?

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

  1. // Ticket Description
  2. taskMap.put("What_Id",{"id":ticketContactId});
  3. taskMap.put("Description",ticketDescription);
  4. taskMap.put("Owner",{"email":ticketOwnerEmail});
  5. taskMap.put("Status","Not Started");
  6. taskMap.put("Subject",ticketSubject);
  7. taskMap.put("$se_module",se_module);
  8. info zoho.crm.createRecord("Tasks",taskMap);

Following the Module name documentation (https://www.zoho.com/deluge/help/crm/create-record.html

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

  1. {"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,

      Zoho Developer Community








                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources


                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources

                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner







                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now