Resolved! Problem with gs.getUser().getRecord().getDisplayValue() when comparing in array
Hi, Guys. I stumbled upon this interesting observation. So when I did this: var t = ["Finance", "Sales"]; var t1 = gs.getUser().getRecord().getDisplayValue('department'); gs.log(t.indexOf(t1)); this will always evaluate to -1. It's very odd because...