Creating an Account from Deals
Hi, I am trying to make a function that:
- Create a new Account from Deals.
- and make the contact Is_Primary_Contact
- Associating Record Deal with Account
I am using this function. Runs well. It is just missing Associating Record.
mp = Map();
mp.put("Account_Name",dealname);
mp.put("Is_Primary_Contact",true);
create = zoho.crm.createRecord("Accounts",mp);
info mp;
info create;
update = zoho.crm.updateRecord("Contacts",contId.toLong(),{"Is_Primary_Contact":true});
info update;
return "success";
Arguments: contId =Contact Id, Pontential_Name= Potential Name
Thanks!