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

183
Vistas
Trigger Workflow from Script Netsuite

Okay, I have decided to strip this one back to the bare bones based on the Netsuite documentation and go from there.

With the below in place I receive the following error still -

"Syntax error: missing : after property id"

Any help is greatly appreciated.

/**
 * @NApiVersion 2.0
 * @NScriptType UserEventScript
 */

require(['N/task'], 
function(task) {
var workflowTask = task.create({taskType: task.TaskType.WORKFLOW_TRIGGER});
workflowTask.recordType = 'customer';
workflowTask.recordId = 107;
workflowTask.workflowId = 3;
var taskId = workflowTask.submit();

return {
workflowTask};
});
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Looks like you are missing the entry points for the UserEvent script. I don't see something like

exports.beforeSubmit = beforeSubmit;
exports.beforeLoad = beforeLoad ;
exports.afterSubmit = afterSubmit ;

return exports;
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