Hello, how can we know if a record is really chang...
# suitescript
x
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
it is possible with NFT, at least for those fields defined on the record class in question.
x
Thanks for your answer! NFT - Netsuite-fasttrack-tookkit? Would rather using standard Netsuite function if it is possible.
s
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
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
👍 1