Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

134
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda