* @NApiVersion 2.x ``` * @NScriptType ScheduledScr...
# suitescript
k
* @NApiVersion 2.x
Copy code
* @NScriptType ScheduledScript
 * @NModuleScope SameAccount
 */
define(['N/record','N/search','N/log'], function(s,r,log) {
 function execute(context){
    try{
        var caseSearch = s.load({
            type:s.Type.supportcase,
            id:"1099"
        });

        caseSearch.run().each(printCaseName);

        function printCaseName(result){
            log.debug({details:'casenumber' +  result.id + 'working'});
            return true;
        }
    }
     catch (error) {
       log.debug('error',error);
     } 
 }   
 return{
    execute: execute
  }
});
e
Your search type should be
s.Type.SUPPORT_CASE
or
supportcase
.
s
your defines are out of order, unless you really intend for s to be N/record and r to be N/search
k
ok.. thank you for your replies..