Can someone tell me what im doing wrong here? Im g...
# suitescript
l
Can someone tell me what im doing wrong here? Im getting a field value from one record, loading a different record and setting that field value on the second record. but for some reason is not setting any values. not sure why
b
your code loads the same record
l
thats what happens when i copy paste lines of code lol
thank you
b
you get the standard performance optimization advice
dont load the record unless you have to
use search.lookupFields and record.submitFields if possible
s
Also be careful loading and saving records from within a user event script. No scripts or workflows will execute on the loaded/saved record at the time it's loaded or saved when done from a user event script.
a
Can/Should you access netsuite record field as standard javascript objects?
b
You appear lost @Alan Fitch
a
Tell me about it.
Oh you mean the thread. That too.