Auto-Populate Contacts based on Lookup Accounts in Zoho CRM
Budget: $10 – $30 USD
In Accounts I have a field "Account Typ" (i.e. Business Type) and in Contacts I have a field "Account Typ". I want to create a function whenever Account Typ is updated in Accounts, every Contact also gets an update on Account Typ.
Both fields in both modules have the same name and are both are "Multi-Select".
My Script is this:
relatedcontacts = zoho.crm.getRelatedRecords("Contacts","Accounts",acctId.toLong(),0);
//info relatedcontacts;
for each ele in relatedcontacts
{
mp = Map();
mp.put("Account_Typ.",Account_Typ.toList(";"));
update = zoho.crm.updateRecord("Contacts",ele.get("id").toLong(),mp);
info mp;
info update;
}
Both fields in both modules have the same name and are both are "Multi-Select".
My Script is this:
relatedcontacts = zoho.crm.getRelatedRecords("Contacts","Accounts",acctId.toLong(),0);
//info relatedcontacts;
for each ele in relatedcontacts
{
mp = Map();
mp.put("Account_Typ.",Account_Typ.toList(";"));
update = zoho.crm.updateRecord("Contacts",ele.get("id").toLong(),mp);
info mp;
info update;
}