Hello, how can we know if a record is really changed(not load and save, must have something changed) in an user event script aftersubmit function? Is it possible to compare context.newRecord and context.oldRecord?
s
Shawn Talbert
01/25/2022, 3:00 PM
it is possible with NFT, at least for those fields defined on the record class in question.
x
Xiaolei Hu
01/25/2022, 3:10 PM
Thanks for your answer! NFT - Netsuite-fasttrack-tookkit? Would rather using standard Netsuite function if it is possible.
s
Shawn Talbert
01/25/2022, 3:38 PM
I would wager the code you write to do this with plain NS will be more fragile than NFT, but I wish you best of luck!
👍 1
s
Sandii
01/25/2022, 5:46 PM
To answer your original question, there is not a native function that magically compares oldRecord vs newRecord. The implementation is so case dependent that it doesn't really make sense for NS to provide that natively via their APIs