Accelerator Help

From Sage CRM Knowledge Base
Revision as of 09:13, 15 March 2013 by Crmtogetherkb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

'Accelerator Online Help'



This is the code used to update an opportunity record created in Accelerator to have the company territory as the default. This should go into an UpdateRecord stub in a table level script.

 var oppo_primarycompanyid=Values("oppo_primarycompanyid");
 if ((oppo_primarycompanyid!="")&& (oppo_primarycompanyid+""!="undefined"))
 {
  var crec=CRM.FindRecord("company","comp_companyid="+oppo_primarycompanyid);
  Values("oppo_secterr")=crec("comp_secterr");
 }