getEventSource (Client API reference)
Returns a reference to the object that the event occurred on.
Syntax
ExecutionContextObj.getEventSource()
Return value
Type: Object
Description: Returns the object from the Xrm object model that is the source of the event, not an HTMLÂ DOM object. For example, in an OnChange event, this method returns the formContext.data.entity object that represents the changed column.
Note
Unsure about entity vs. table? See Developers: Understand terminology in Microsoft Dataverse.