EventArgs.getEntityReference (Client API reference)
Use this method to know information about a table being saved/updated. It returns table ID, and table name if success.
Note
This API is not available for Dynamics 365 Customer Engagement on-premise deployments. More information: Client APIs not supported in Customer Engagement (on-premises)
Syntax
executionContext.getEventArgs().getEntityReference();