How can display saved search result using suitelet script

try{
           var searcResult=search.load({
                    id:'customsearch6034' //Id of the saved search
                });
               //Run the search result
              var results = searcResult.run().getRange(0,1000);
            //stringify the result and write the the result
           var newResult= response.writeLine(JSON.stringify(results));
}catch(e){
          log.debug("error",e);
}

Leave a comment

Your email address will not be published. Required fields are marked *