Creating a custom module record with a linked look up contact field

Creating a custom module record with a linked look up contact field

How can I create a custom module record linked to the same Contact starting from  Potential Module using a custom button in Record View.

Somehow my look up contact field stays blank, I was able to do it by using  First name  + Last name strings but this wont work if i have contacts that have the same name. i need to find a way to do this with the contact ID.



GetInfo = zoho.crm.getRecordById("Potentials",input.Opportunity_ID.toLong());
createMap=map();
createMap.put("Nom Service","Nouvelle Installation");

// I successfully see the contact ID in this test field...
createMap.put("ContactTemporaire",(GetInfo.get("CONTACTID")).toLong());


//My look up field stays blank if using ID instead of using First Name, Last name Strings...
createMap.put("Contact_ID",(GetInfo.get("CONTACTID")).toLong());

createMap.put("Statut","Ceduler");
createMap.put("Objet","Installation");
createMap.put("Date du R-V","");
createMap.put("Agenda de","Installation");
createMap.put("Document","Doc.Installation Français");
createMap.put("Num. Contrat",GetInfo.get("Num Contrat HD"));
createMap.put("Magasin",GetInfo.get("Magasin"));
createMap.put("Représentant",GetInfo.get("Représentant"));
createMap.put("Installateur",GetInfo.get("Installateur"));
RespClone = zoho.crm.create("CustomModule1",createMap);
return "";