I have a Billing application that I am creating in Zoho Creator. It will be called from the Contact record in CRM. My goal is to populate the CRM lookup fields in Creator with the proper values from CRM. When I use the following Deludge script in the onload event it does not populate the fields:
hide ContactID;
if (getFieldValue("ContactID") != "")
{
ContID = (getFieldValue("ContactID")).toLong();
contact = zoho.crm.getRecordById("Contacts", ContID);
//alert(contact);
bill = map();
acctID = 0;
acctID = (contact.get("ACCOUNTID")).toLong();
// contactName = contact.get("");
account = zoho.crm.getRecordById(("Accounts"), acctID);
//alert(account);
Contact_ID = ContID.toLong();
Account_ID = acctID.toLong();
//alert(ContID);
//input.Account = "Test" //account.get("Account Name").toString();
}