Here is some sample code from the documentation fo...
# suitescript
j
Here is some sample code from the documentation for doing this