Your UE script needs to account for that, because ...
# suitescript
m
Your UE script needs to account for that, because the newRecord is not the same for a regular EDIT event and an XEDIT