Hi All, I have a userevent where we are checking s...
# suitescript
s
Hi All, I have a userevent where we are checking status field for Travel request (custom) im getting same value in both oldrecord and newrecord even after status is changed
c
Which function are you checking this in? What is changing the status (UI, another script?)
s
change is from UI entry point of Uservent is aftersubmit
actually we have implemeted rety mechanism when real time sync from netsuite to other system fails then running one map reduce script- this map reduce script will load and save this particular record for which sync has failed so that user event script will trigger and try to push data again usecase: when we are updating status field in UI,sync failed because of some logic related to old satus and new status when we checked old status and new status in script logs its giving same value even when status is changed which should have different values
c
If you’re doing a straight load then save, nothing has changed?
s
no
c
That was more a statement of fact, because it’s working as designed. You load it, you do nothing, you save it. Nothing has changed
It doesn’t read the system notes to work out what was changed previously & then set oldRecord based on that
s
@CD What do you think the solution could be? sorry if i'm little unaware, i'm new to netsuite