I have a field in ACCOUNTS called REPS that has drop down options (Global Drop down List)
to be honest.... i have no idea what im trying will even work
// Fetch the Account details using the Account ID
accountDetails = zoho.crm.getRecordById("Accounts",accountId);
// Check if the required fields are present in the Account
if(accountDetails.get("Rep") != null)
{
rep = accountDetails.get("Rep");
// info rep;;
// Fetch related Contacts
relatedContacts = zoho.crm.searchRecords("Contacts","(Account_Name:equals:" + accountId + ")");
// info relatedContacts;
for each contact in relatedContacts
{
// Update the Contact fields
contactId = contact.get("id");
// info contactId;
updateMap = Map();
if(rep != null)
{
updateMap.put("Rep",rep);
}
// info updateMap;
updateResponse = zoho.crm.updateRecord("Rep",contactId,updateMap);
info updateResponse;
}
}