Hello,
Despite my research, I cannot find a deluge code for my function.
I want when a deal is created with an account, the address fields are directly filled in the deal module in order to avoid entering again the same information already present.
Source module :
Accounts
Accounts fields :
Billing_Street
Billing_Code
Billing_City
Destination module :
Deals
Deals fields :
Adresse_de_facturation
Code_postal_de_facturation
Ville_de_facturation
accountId = AccountId.tostring();
accountDetails = zoho.crm.getRecordById("Account",accountId);
mp = Map();
mp.put("Adresse_de_facturation",ifnull(accountDetails.get("Billing_Street"),""));
mp.put("Code_postal_de_facturation",ifnull(accountDetails.get("Billing_Code"),""));
mp.put("Billing_City",ifnull(accountDetails.get("Billing_Street"),""));
update = zoho.crm.createRecord("Deal",mp);
info mp;
info update;
Thank you
Aurélie,