But keep in mind that `context.newRecord` won't ex...
# suitescript
m
But keep in mind that
context.newRecord
won't exist in the "delete" event.. you may want to skip this logic when the user is deleting a record, or you will throw an error that prevents them from doing that.