How to get Account Owner from Accounts Module
Hi,
In Contacts Module i added a custom field "AccOwner",
I need a function to fill the field automatically when the "Account Name" is filled or changed.
The following code cannot get the value of "Account Owner",
criteria = "(Account Name:equals:" + acctName + ")";
account = zoho.crm.searchRecords("Accounts",criteria);
owner = account.get("Account Owner");
mp = Map();
mp.put("AccOwner",owner);
update = zoho.crm.update("Contacts",contId,mp);
info mp;
info update;