Hi, we are using Restlets, and are calling them us...
# suitescript
d
Hi, we are using Restlets, and are calling them using their internal ids e.g:
<https://XXXXX.app.netsuite.com/app/site/hosting/restlet.nl?script=878&deploy=1>
We are aware that it is also possible to use the script id, but are hesitant to take advantage of this as we cannot find any mention in the documentation. Does anyone know whether this is an “unofficial” feature or not? e.g:
<https://XXXXX.app.netsuite.com/app/site/hosting/restlet.nl?script=customscript_myrestlet&deploy=1>
Thanks!
s
We have been using the script id and deployment ids to call a dozen different restlets, and have been doing so for over two years now with no issues. Prior to that, we had to deal with scripts having different internal ids in sandbox and production, so it’s great to not have that concern anymore. We have also noticed that the script id and deploy id do not seem to be case sensitive, so this will work too:
<https://XXXXX.app.netsuite.com/app/site/hosting/restlet.nl?script=CustomScript_MyRestlet&deploy=CustomDeploy_MyEndpoint_1>
I cannot say if it an unofficial feature or not, but script ids work in place of internal ids for many other things, such as saved searches:
<https://XXXXX.app.netsuite.com/app/common/search/searchresults.nl?searchid=customsearch_my_transaction_view>
d
You're welcome to try using this if you want. http://dev.blubanyan.com/netsuite/NS_REST_Input.php