define(['N/file'],
function(file) {
/**
* 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) {
var fileObj = file.load({
id: 8188
});
var fileId = fileObj.save();
}
return {
onRequest: onRequest
};
});
But my file not getting loaded . I am new to suiteScript 2.0.