Hi Everyone I am getting this error "You have ente...
# suitescript
d
Hi Everyone I am getting this error "You have entered an invalid submit option for this record type: {1}" while using this api "var jobId = nlapiSubmitCSVImport(job);" does anyone know why this kind of error is coming I am using Scheduled Script
b
you probably need to share what was set on
job
d
var job = nlapiCreateCSVImport();
job.setMapping(161);// internal id of Saved CSV Import
job.setPrimaryFile(nlapiLoadFile(1092941));//1092941//internal id of file
job.setOption("createContact", "jobContactImport");
var jobId = nlapiSubmitCSVImport(job);
b
remove job.setOption("createContact", "jobContactImport");
documentation suggests you only set jobName
no idea what createContact is
d
Thank you so much @battk I just remove code which you suggested and it's work perfectly