<@U29QCJQF3> ok, so here is my function (i use ss2...
# suitescript
a
@michoel ok, so here is my function (i use ss2.0, but the idea should be the same from your sample code)