In a workflow custom function I am looking to access the Contact ID from a CustomModule record.
ToDoCrm = zoho.crm.getRecordById("CustomModule4",input.ToDoId);
controlid=ToDoCrm.get("35-Control");
client=ToDoCrm.get("35-Client");
contact_id=ToDoCrm.get("contactid");
This is where I start have problems
contactinfo = zoho.crm.getRecordById("Contacts",contact_id.toLong());
This line fails
email=contactinfo.get("Email");
account=contactinfo.get(("Account Name"));
dos=contactinfo.get("Date of Separation");
dom=contactinfo.get("Date of Marriage");
fname=contactinfo.get("First Name");
updatetodo = zoho.crm.updateRecord("CustomModule4",input.ToDoId.toString(),{ "35-Frist Name" : fname, "Email" : email, ("35-Account") : account, "35-Client To-Do Name" : zoho.currentdate, "35-Date-Requested" : zoho.currentdate, "35-Date of Separation" : dos, "35-Date of Marriage" : dom, "35-Last Action Date" : zoho.currentdate });