Phillip
08/26/2021, 11:22 PMbattk
08/26/2021, 11:24 PMbattk
08/26/2021, 11:24 PMAlan Fitch
08/26/2021, 11:25 PMPhillip
08/26/2021, 11:41 PMbattk
08/26/2021, 11:42 PMPhillip
08/26/2021, 11:47 PMbattk
08/26/2021, 11:48 PMPhillip
08/26/2021, 11:49 PMAlan Fitch
08/26/2021, 11:49 PMresult.value
put result?.value
. value would then be undefined. You must use suitescript 2.1Alan Fitch
08/26/2021, 11:50 PMresult
is whatever undefined variable is giving you an error.battk
08/26/2021, 11:52 PMbattk
08/26/2021, 11:52 PMPhillip
08/26/2021, 11:53 PMPhillip
08/26/2021, 11:54 PMbattk
08/26/2021, 11:54 PMAlan Fitch
08/26/2021, 11:54 PMallocvalue = allocrule.custitem_pi_allocationrule[0]?.value;
with the question mark then use if(!allocvalue)
Phillip
08/26/2021, 11:59 PMPhillip
08/26/2021, 11:59 PMAlan Fitch
08/27/2021, 12:00 AMPhillip
08/27/2021, 12:02 AMAlan Fitch
08/27/2021, 12:03 AM