https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
b

Brian Brown

03/23/2022, 9:31 PM
That just doesn't make sense to me. In an afterSubmit the WORK ORDER should always have the 'assemblyitem' field populated. That's a must.
c

Craig

03/23/2022, 10:53 PM
You are correct. There has to be an assembly item. I don't know the field name off the top of my head though
Are you sure you have the correct field?
b

Brian Brown

03/23/2022, 10:58 PM
Got the correct field. As opposed to using newRecord.getValue.. I changed to loadedRecord.getValue
and that seemed to resolve
still the newRecord should have that value on it
not sure what's going on there
b

battk

03/23/2022, 11:51 PM
an xedit to a work order would only have the changed fields on the newRecord
b

Brian Brown

03/24/2022, 12:06 AM
interesting... so an xedit context only has the changed fields on the newRecord object?
hmmm
b

battk

03/24/2022, 12:09 AM
expect to do some minor translation of ss1 methods