How are you setting it in the global space if the ...
# suitescript
m
How are you setting it in the global space if the scriptContext isn't in scope there?