/** * @NApiVersion 2.x * @NScriptType ScheduledScript * @NModuleScope SameAccount */ define(['N/runtime', 'N/file', 'N/search','N/error', 'N/email', 'N/encode', 'N/log'], /** * @param {runtime} runtime * @param {transaction} transaction */ function(runtime, file, search, ui, sftp, error, email, encode, log) { /** * Definition of the Scheduled script trigger point. * * @param {Object} scriptContext * @param {string} scriptContext.type - The context in which the script is executed. It is one of the values from the scriptContext.InvocationType enum. * @Since 2015.2 */ function execute(scriptContext) { var priceLevel = runtime.getCurrentScript().getParameter({name:'custscript_swa_price_level'}); log.debug({ title: 'DEBUG', details: priceLevel }); } return { execute: execute }; });