Solved
Forum Discussion
koryknick
4 years agoEmployee
Change your responsibleUnit to a function:
"responsibleUnit": (opt) => match opt {
"10" => "Delivery",
"9" => "Operation",
"8" => this.salesRegionMapper('accountableUnit', 8),
"16" => "Tolling Services",
_ => "unknown"
},
Then you can call as a function and it will drilldown to the salesRegionMapper function:
lib.testcall.responsibleUnit('8')