Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
IDE with 2.0 update does not create 1.0 templates properly
I have installed the updates for 2.0 and can create 2.0 scripts. When I go to a previous 1.0 project and do new-> suitescript file and select 1.0, it creates a bad template based on 2.0
Anyone else had this issue? I have to copy and paste from other 1.0 files.
/**
* @NApiVersion 2.x
* @NScriptType Suitelet
* @NModuleScope SameAccount
*/
define([${modules}],
${modulesJsDoc}
function(${moduleParameters}) {
/**
* Definition of the Suitelet script trigger point.
*
* @param {Object} context
* @param {ServerRequest} context.request - Encapsulation of the incoming request
* @param {ServerResponse} context.response - Encapsulation of the Suitelet response
* @Since 2015.2
*/
function onRequest(context) {
}
return {
onRequest: onRequest
};
});