I have a user event script for Cases that is not t...
# suitescript
d
I have a user event script for Cases that is not triggering based upon inbound email creation of cases, any advice would be appreciated
Copy code
/**
 *@NApiVersion 2.x
 *@NModuleScope Public
 *@NScriptType UserEventScript
 */
define(['N/record', 'N/search', 'N/log'], function(record, search, log) {

  function onAfterSubmit(context) {
    log.debug('hello world');
    return;
  }
  return {
    afterSubmit: onAfterSubmit
  };

});
b
looks reasonable so far
what does the script deployment look like
d
@battk I was able to trigger the UE, however, the problem is the UE doesn’t trigger when a new case is created by inbound email.
b
not really sure what you mean
ill simply say that cases created by case capture trigger user event scripts
and your script file looks too simple to cause problems
therefore the problem probably is on the script deployment
d
yeah I figured it out, deployment was in test and not set to proper roles