Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
Netsuite suitescript for converting saved search to csv

I am trying to export simple script to csv with code below in suitescript 2.0 ,

require(['N/task'],
function(task) {
    
 var SEARCH_ID = 1487;



       var searchTask = task.create({

           taskType: task.TaskType.SEARCH

     });

       searchTask.savedSearchId = SEARCH_ID;

       var path = 'Test/export.csv';
 
       searchTask.filepath = path;
       
       var searchTaskId = searchTask.submit();
 
       var a = 0;});

However, it gives the following error,

SSS_MISSING_REQD_ARGUMENT 10/5/2021 10:15:40.917 {"type":"error.SuiteScriptError","name":"SSS_MISSING_REQD_ARGUMENT","message":"task.submit: Missing a required argument: fileId / filePath","stack":["createError(N/error.js)","(adhoc−1debugger.user:25)","(adhoc−1debugger.user:3)"],"cause":{"name":"SSS_MISSING_REQD_ARGUMENT","message":"task.submit: Missing a required argument: fileId / filePath"},"id":"","notifyOff":false,"userFacing":true}

Please guide me how to troubleshoot it. I have never worked with script before so any suggestions are welcome.

Thanks!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The filePath needs to be a full path from the top of your File Cabinet hierarchy. All the folders referenced must exist.

Additionally the recommended way to create the search task is as a single step:

var searchTask = task.create({
    taskType: task.TaskType.SEARCH,
    savedSearchId: searchId,
    filePath: filePath
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda