https://netsuiteprofessionals.com logo
h

heath

01/31/2017, 7:26 PM
Hello all. I’m a developer that is extremely new to Netsuite and am taking over a project that was developed by a contractor that is no longer available. So I’m sure this is probably a basic question. How do you debug a scheduled script that is in normally in ‘Not Scheduled’ status? If I change the Deployment.Status to ‘Testing’, and then select it in the Debugger, it jumps right into the function, but nothing has been passed to it. So it fails. I want the script to be called as it will be in the actual scenario, so I’m not sure how to do that. To give you an idea of what I mean, here is a snippet:
Copy code
var context = nlapiGetContext();
	var fileId 	= context.getSetting('SCRIPT', 'custscript_json_file_internal_id');
	var studentLogRecord = context.getSetting('SCRIPT', 'custscript_student_audit_log_record_id');
	var isPreview = context.getSetting('SCRIPT', 'custscript_statement_ispreview');
	var file 		= nlapiLoadFile(fileId);