This works fine and a task is set up when the cancellation form is submitted. However I need to add another field to the task - the creator record ID - as I want to be able to create another workflow which will update a status field in Creator when the task is closed in the CRM. ( I am assuming I can do this easily using Zoho Flow - as long as I have the ID of the Creator record to be updated!)
taskinfo = Map();
taskinfo.put("Owner",{"id":"3052082000000264001"});
taskinfo.put("Due_Date",today.addDay(7));
taskinfo.put("Subject","Cancellation Request");
taskinfo.put("Description","Please contact re cancellation request");
taskinfo.put("$se_module","Accounts");
taskinfo.put("What_Id",{"id":input.Organisation_Name.toLong()});
taskinfo.put("CancellationID", input.ID);
response = zoho.crm.createRecord("Tasks",taskinfo);
This code does not create a task at all!!