IOnSaveExtensionContext
This object provides the objectId, oldObjectId and Object type from the response object of OnAfterSave event.
getObjectId
The following code sample shows the syntax for getting the objectId:
getObjectId: () => string;
getOldObjectId
The following code sample shows the syntax for getting the old objectId of the
record. The old objectId should be minus number if the event is create and should be
same if the event is save.
getOldObjectId: () => string;
getObjectType
The following code sample shows the syntax for getting the
objectType:
getObjectType: () => string;