If you are using SS1.0, then you may need to look ...
# suitescript
s
If you are using SS1.0, then you may need to look at
nlapiResolveURL
instead. But I'd say the time invested in SS2.0 will pay you back many times over.