Hello guys, in my suitelet, I am doing some work o...
# suitescript
t
Hello guys, in my suitelet, I am doing some work on RA, it works fine when I use internal url, But when I use external url I am getting this error(below), on line where I am loading the record. It says
You cannot view this record
The suitelet is running as administrator. I couldn't find any thing related to this. Has anyone of you encountered this or know about this ?
"{\"userEvent\":null,\"internalId\":null,\"code\":\"USER_ERROR\",\"details\":\"You cannot view this record\",\"stackTrace\":{\"[Ljava.lang.String;\":[\"createRMA(createRA_sl.js$22155:265)\",\"<anonymous>(createRA_sl.js$22155:325)\"]},\"type\":\"nlobjError\",\"suppressNotification\":false}"
w
Maybe check that you don't have some beforeLoad UE-script that runs into issues?
t
There is a script on beforeload installed via bundle. Can't check any logs. and if there is something wrong with that, shouldn't that create issue in both cases be it external or internal url.
w
Maybe it's missing something if you access it externally 🤷‍♂️ . Try do un-deploy it and see if there is any difference.
t
No, it doesn't make any difference.
z
how do you authorize from external system? Token or something else? Did you check available without login on the script / deployment?
t
No custom authorization is being used and it is set to available without login. then only we can get the external url .
w
show some code?