How to moving related list from contact to leads, like event, calls and tasks.

How to moving related list from contact to leads, like event, calls and tasks.

I am able to move all data fields, now when I try to move calls for example, I have code like this:

calls = zoho.crm.getRelatedRecords("Calls","Leads",leadId);

for each call in calls

{
info call;
callmap = Map();

callmap.put("What_Id","4991545000000614159");

callmap.put("$se_module","Contacts");

callmap.put("Who_Id","4991545000000607670");

updateCall = zoho.crm.updateRecord("Calls",call.get("id"),callmap);

info updateCall;

}

if I comment out 

//callmap.put("$se_module","Contacts");

I got an error says:
  • {"code":"MANDATORY_NOT_FOUND","details":{"api_name":"$se_module"},"message":"required field not found","status":"error"}
if I un-comment it

callmap.put("$se_module","Contacts");

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

Any idea how to make this work? Thanks!