I'm looking to understand the differences between ...
# suitescript
y
I'm looking to understand the differences between these three context.UserEventType types: 1. EDIT (for full record edits? Does this event trigger WHILE the record is being edited, or after?) 2. XEDIT (for inline edits, field specific changes flagged only?), and 3. SUBMIT (is this the right user event type to subscribe to, so I can run an afterSubmit() event???) noting there is no documentation in NS** for this event, but I can actually select it in the dropdown in NetSuite itself... I'm getting a bit confused about these three and which is just a..."this record has now been updated, here's the oldrecord fields, and the newrecord fields, so now you can do whatever it is you need to do".. type of event Basically I just want to hook up to an event that essentially flags when a record has been updated, it's easy enough to intuitively say, if you want to subscribe to when a record is created, just use the ".CREATE" event... but I can't see many places that clearly help me choose which user event type I should really be hooking up to for an update. Some sources I have already looked at: https://riptutorial.com/netsuite/topic/7200/user-event--before-and-after-submit-events https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4407992596.html ** https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4387799721.html (all examples here are for .CREATE)
Got it figured - I need the edit event to run whenever something is updated, and this one can run after the record is submitted.