I’m facing a weird problem. My CSV Imports do not always trigger the deployed user event scripts. Even a simple script like the one below sometimes works and sometimes doesn’t. The CSV Import preferences are correctly set (Run server suitescript and trigger workflows is checked).
Anyone else experienced this?
Code:
/**
* @NApiVersion 2.x
* @NScriptType UserEventScript
* @NModuleScope SameAccount
*/
define([],
function() {
function beforeLoad(scriptContext) {
log.debug(‘BeforeLoad’, ‘triggered’);
}
function beforeSubmit(scriptContext) {
log.debug(‘BEforeSubmit’, ‘triggered’);
}
function afterSubmit(scriptContext) {
log.debug(‘AfterSubmit’, ‘triggered’);
}
return {
beforeLoad: beforeLoad,
beforeSubmit: beforeSubmit,
afterSubmit: afterSubmit
};
});
This is a cached copy. Click here to see the original post.