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
};
});
This is a cached copy. Click here to see the original post.