Is there a reason why a portlet script would produce the following error:
CODE: UNEXPECTED_ERROR
In the portlet script (running as admin), I am simply trying to get the URL for the current script, so want to load the file and then call getURL. Doing the following throws the above error:
var file = nlapiLoadFile((nlapiGetContext()).getScriptId());
I tested the getScriptId independently and it is returning the string ID correctly. Curious if this is a known error or I am doing something incorrectly.