scottvonduhn
09/27/2023, 3:57 PM'entityid'
value from the NewRecord:
nlapiGetNewRecord().getFieldValue('entityid')
However, about half of the time, the value returned is null. Initially, I thought is was due to xedit (inline edits) since they only contain modified values, but it’s happening in a regular edit as well. Switching the code to use the OldRecord works fine, and essentially fixes the issue.
The strange part is that this worked correctly all the time in the old account using the NewRecord, but not in ours, and I can’t figure out what the difference is.
Any ideas about what could cause this difference? More generally, I am concerned that any UE could get null values from NewRecord in an edit event, which would likely break a lot of other code we have, though I only see it with this field in this script right now.Clay Roper
09/27/2023, 4:36 PMscottvonduhn
09/27/2023, 4:42 PMClay Roper
09/27/2023, 4:43 PMentityid
is the Name, correct? I'm assuming that in those cases, it's still showing a value in that field after it's saved?scottvonduhn
09/27/2023, 4:47 PMscottvonduhn
09/27/2023, 4:47 PMscottvonduhn
09/27/2023, 4:50 PMscottvonduhn
09/27/2023, 4:55 PMreptar
09/27/2023, 6:22 PMbattk
09/27/2023, 6:39 PMbattk
09/27/2023, 6:42 PMbattk
09/27/2023, 6:42 PMscottvonduhn
09/27/2023, 6:43 PMbattk
09/27/2023, 6:44 PMscottvonduhn
09/27/2023, 6:46 PMscottvonduhn
09/27/2023, 6:48 PMscottvonduhn
09/27/2023, 6:51 PMscottvonduhn
09/27/2023, 6:51 PMbattk
09/27/2023, 6:52 PMscottvonduhn
09/27/2023, 6:52 PMscottvonduhn
09/27/2023, 6:55 PMscottvonduhn
09/27/2023, 6:57 PMscottvonduhn
09/27/2023, 6:59 PMscottvonduhn
09/27/2023, 7:00 PMbattk
09/27/2023, 7:03 PMbattk
09/27/2023, 7:04 PMscottvonduhn
09/27/2023, 10:00 PMec
09/27/2023, 11:41 PMscottvonduhn
09/28/2023, 12:07 AM