I just noticed that 87212 has an example for that ...
# suitescript
s
I just noticed that 87212 has an example for that function (not sure if that’s the same one you found or not)