does beforeSubmit on create have oldrecord?
# suitescript
e
does beforeSubmit on create have oldrecord?
z
?
e
contaxt.oldRecord? exists on create, by beforesubmit?
z
ok what if does and what if doesn't?
e
huh??
e
i dont think it does
but you can easily test this
z
@eliyahu moskowitz, I am trying to find any purpose for having or not oldRecord... Even you want to create the same script for Create/Edit events, oldRecord in the Create event does not make any sense... You have a newRecord instance and you have all data inside that. oldRecord before create?!? undefined for me