I'm not sure if this is a suite script question --...
# suitescript
s
I'm not sure if this is a suite script question -- I have a user event after submit script that runs on every item fulfillment, however, I only need it for the item fulfillment for transfer orders. I of course have a logic to deal with that. I was wondering from a (load time /memory execution) does it affect the user experience to load the script and till it hits the if statemnet see code below
Copy code
/**
 * @NApiVersion 2.1
 * @NScriptType UserEventScript
 * @NModuleScope SameAccount
 */
define(['N/record','N/email'],
    /**
     * @param {record} record
      */
    function (record,email) {
        function afterSubmit(scriptContext) {

 var rec = scriptContext.newRecord;
 var salesorder = rec.getValue({ fieldId: 'createdfrom' });

 var ups =  rec.getSublistValue({
          sublistId:'packageups',
          fieldId:'packagetrackingnumberups',
          line: 0
      })         
var status = rec.getValue({ fieldId: 'custbody28' });
var transferlocation = rec.getValue({ fieldId: 'transferlocation' });
var wfsshipmenid = rec.getValue({ fieldId: 'custbody19' });          
        
log.debug({tittle:status,details: wfsshipmenid} )
b
yes
s
How badly will it affect the user
b
use the APM bundle to quantify how badly your scripts are affecting your users' experience
s
Thanks will give it a try