I'm trying to update the related account when a contact is edited, using a workflow that executes the following function.
But it is not updating the related account fields. What am I doing wrong? I think it has to do with the begining, when we are supposed to get the account id to make the connection..any advice? (Yesterday it was working fine, then I modified the function and I lost some part probably...I'm really new with deluge...) thanks in advance
custinfo = zoho.crm.getRecordById("Accounts",acctId.tolong());
mp = Map();
mp.put("Selling_Point_City",spcity);
mp.put("Selling_Point_Code",spcode);
mp.put("Selling_Point_Country",spcountry);
mp.put("Selling_Point_State",spstate);
mp.put("Selling_Point_Street",spstreet);
mp.put("Selling_Point_Street_Number",spstreetn);
update = zoho.crm.updateRecord("Accounts",acctId,mp);
info mp;
info update;