I am trying to add a mobile business rule that applies at various stages for an Opportunity. With the below code, the rule is only working on the Verified stage. I need it to work at 13 different stages so I was hoping to be able to add it all in one rule, but not sure if that is possible?
Terrasoft.sdk.Model.addBusinessRule("Opportunity", {
ruleType: Terrasoft.RuleTypes.Visibility,
events: [Terrasoft.BusinessRuleEvents.Load],
conditionalColumns: [
{name: "Stage" , value: "e39b75ac-db07-4f37-a140-2f881a0a98e5"}, //Closed Won
{name: "Stage" , value: "423774cb-5ae6-df11-971b-001d60e938c6"} //Verified
],
triggeredByColumns: ["Stage"] ,
dependentColumnNames: ["UsrEstStartDate","UsrEstEndDate"]
});