NotificationAction Interface
Implement this interface to trigger a custom Apex class when the conditions for a report notification are met.
Report notifications for reports that users have subscribed to can trigger a custom Apex class, which must implement the Reports.NotificationAction interface. The execute method in this interface receives a NotificationActionContext object as a parameter, which contains information about the report instance and the conditions that must be met for a notification to be triggered.
The following are methods for NotificationAction.
-
Executes the custom Apex action specified in the
contextparameter of the context object,NotificationActionContext. The object contains information about the report instance and the conditions that must be met for a notification to be triggered. The method executes whenever the specified conditions are met.
Executes the custom Apex action specified in the context parameter of the context object, NotificationActionContext. The object contains information about the report instance and the conditions that must be met for a notification to be triggered. The method executes whenever the specified conditions are met.
public void execute(Reports.NotificationActionContext context)
-
context:
Type: Void
This is an example implementation of the Reports.NotificationAction interface.