Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Netsuite suitescript para convertir la búsqueda guardada a csv

Estoy tratando de exportar un script simple a csv con el siguiente código en 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;});

Sin embargo, da el siguiente error,

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

Por favor, guíame sobre cómo solucionarlo. Nunca he trabajado con script antes, así que cualquier sugerencia es bienvenida.

¡Gracias!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La ruta del archivo debe ser una ruta completa desde la parte superior de la jerarquía de su Gabinete de archivos. Todas las carpetas a las que se hace referencia deben existir.

Además, la forma recomendada de crear la tarea de búsqueda es en un solo paso:

 var searchTask = task.create({ taskType: task.TaskType.SEARCH, savedSearchId: searchId, filePath: filePath });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!