Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Module Does Not Exist error when calling a Restlet
I created a Restlet. Very simple Hello World.js
/**
*@NApiVersion 2.x
*@NModuleScope Public
*@NScriptType Restlet
*/
define([],function() { // NetSuite's AMD pattern
function onRequest_entry(context) { // Suitelet entry function receives a context obj
context.response.write('Hello World'); // Write a response using the context obj
}
return {
get: onRequest_entry // Function assigned to entry point
};
});
I went into Customizations, uploaded the script (I saved it into the SuiteScripts Folder), and deployed it following the info in the help center.
I then called it from Postman using the URL indicated in the Deployment record, and I get the following Error returned:
Status 400 Bad Request