Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
custom module: TypeError: Cannot find function libTest1 in object [object Object]
I created a simple custom module to get an example working to pull into a RESTlet. I keep getting the error, org.mozilla.javascript.EcmaError: TypeError: Cannot find function libTest1 in object [object Object] when calling a function in my custom module. I am not sure how to get around this error, any ideas?
Custom Module:
/**
* TestModule.js
* @NApiVersion 2.x
* @NModuleScope SameAccount
*/
define([], function(){
function test1(){
return 'hi';
}
return {
libTest1 : test1
}
});
RESTlet:
define(['N/record', 'N/error', './TestModule'],
function(record, TestModule) {
/**
* Function called upon sending a GET request to the RESTlet.
*
* @param {Object} requestParams - Parameters from HTTP request URL; parameters will be passed into function as an Object (for all supported content types)