Accelerator Help

From Sage CRM Knowledge Base
Revision as of 11:20, 13 March 2013 by Crmtogetherkb (talk | contribs)

'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"); var crec=CRM.FindRecord("company","comp_companyid="+oppo_primarycompanyid); if (Values("oppo_secterr")!=-1342177274) {

 Values("oppo_secterr")=crec("comp_secterr");

}