Does that not work in SS2? You can try `window.doc...
# suitescript
e
Does that not work in SS2? You can try
window.document
instead of just
document
, but I don't know of a reason it wouldn't work