Deluge Create Task For Contact - $se_module not accepted...

Deluge Create Task For Contact - $se_module not accepted...

I have created the following script to add a Task to a Contact

But the system does not like "Contacts" for the "$se_module" function.   

Is there a different method/script to create a Task directly associated with a Contact?

Here is the function:

************
mp = Map();
mp.put("Subject","Client Written Note");
mp.put("$se_module","Contacts");
mp.put("What_Id",arg_record_id);
mp.put("Owner",contact_record.get("Owner").get("id"));
mp.put("Due_Date",due_date_initial);
mp.put("Remind_At",{"ALARM":"FREQ=MONTHLY;ACTION=EMAIL;TRIGGER=DATE-TIME:" + reminderTime.toString("yyyy-MM-dd'T'HH:mm:ss'+05:30'")});
mp.put("Status","Not Started");
createTask = zoho.crm.createRecord("Tasks",mp);
info mp;
info createTask;

**********

Here is the failure message:

  • {"code":"INVALID_DATA","details":{"api_name":"$se_module"},"message":"invalid data","status":"error"}


      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________