maahutch
3 years agoNew Contributor
Add column to document and repeat value in each row
I have one document structured like this: FirstName LastName Title Ann Smith Ms June Jones Mrs Sam Johnson Mrs And a second document like this: Label Value MyEvent ...
- 4 years ago
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')