Update event using custom function

Update event using custom function

Hello,

I wish to associate an existing event to a custommodule3 record.

I have tried:

eventMap=map();
eventMap.put("CONTACTID",project_array.get("CONTACTID"));
eventMap.put("RELATEDTOID",input.project_id.toLong());
eventMap.put("SEMODULE","CustomModule3");
updateResp = zoho.crm.updateRecord("Events",currentid.toString(),mp);

Any ideas please?

Simon