Copy Email From Contact to Custom Module
I am able to get this to run, but nothing is updated in the Custom Module
Arguments = assId = AssetId (CustomModule1)
assIdStr = assId;
assDetails = zoho.crm.getRecordById("CustomModule1",assId);
contid = ifnull(assDetails.get("CONTACTID"),"");
if(contid != "")
{
contDetails = zoho.crm.getRecordById("Contacts",contid.toLong());
contmap = Map();
contmap.put("Email",ifnull(contDetails.get("Email"),""));
contupdate = zoho.crm.update("CustomModule1",assIdStr,contmap);
info contmap;
info contupdate;
}