** * @NApiVersion 2.x * @NScriptType ScheduledSc...
# suitescript
j
** * @NApiVersion 2.x * @NScriptType ScheduledScript * @NModuleScope Public * define(['N/log'],function(log) { function FileId(context) { log.debug({ title: 'test', details: 'Test Details' }) } return { execute: FileId }; }); few months back i started using suitescript2.O, today i just implemented a schedule script, and trying to deploy in NetSuite i got this error Notice SuiteScript 2.0 entry point scripts must implement one script type function. after that i commented out all of my code and i kept only a single log line, than also i got the same error. can anyone please help me out from this error. Thanks.
s
I'd encourage you to adopt Javascript Standard Style for your SuiteScript https://standardjs.com/