Did you try doing that on a UE beforeload?
# suitescript
n
Did you try doing that on a UE beforeload?