---
schema_version: "1"
id: 87028f3a0005bef1e21804ad2d1abab4d69b43121ed299bb4f84cfc793785697
title: NotificationActionContext Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_reports_NotificationActionContext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fd1f1660a40f8071a9faf89fa2def3706d62b626813d2414fb4d22935b8f0ce1
description: Contains information about the report instance and condition threshold for a report notification.Creates a new instance of the Reports.NotificationActionContext class using the specified parameters.Returns the report instance associated with the notification.Returns the threshold information associated with the notification.
---
# NotificationActionContext Class

Contains information about the report instance and condition threshold for a report notification.

## Namespace

[Reports](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Reports.htm "The Reports namespace provides classes for accessing the same data as is available in the Salesforce Reports and Dashboards REST API.")

- **[NotificationActionContext Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm#apex_reports_NotificationActionContext_constructors)**
- **[NotificationActionContext Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm#apex_reports_NotificationActionContext_methods)**

## NotificationActionContext Constructors

The following are constructors for NotificationActionContext.

- **[NotificationActionContext(reportInstance, thresholdInformation)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm#apex_reports_NotificationActionContext_ctor)**  
    Creates a new instance of the Reports.NotificationActionContext class using the specified parameters.

### NotificationActionContext(reportInstance, thresholdInformation)

Creates a new instance of the Reports.NotificationActionContext class using the specified parameters.

#### Signature

public NotificationActionContext(Reports.ReportInstance reportInstance, Reports.ThresholdInformation thresholdInformation)

#### Parameters

- **reportInstance**:
    
    Type: [Reports.ReportInstance](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_reportinstance.htm#apex_class_reports_reportinstance "Returns an instance of a report that was run asynchronously. Retrieves the results for that instance.")
    
    An instance of a report.
- **thresholdInformation**:
    
    Type: [Reports.ThresholdInformation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ThresholdInformation.htm#apex_class_reports_ThresholdInformation "Contains a list of evaluated conditions for a report notification.")
    
    The evaluated conditions for the notification.

## NotificationActionContext Methods

The following are methods for NotificationActionContext.

- **[getReportInstance()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm#apex_reports_NotificationActionContext_getReportInstance)**  
    Returns the report instance associated with the notification.
- **[getThresholdInformation()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_NotificationActionContext.htm#apex_reports_NotificationActionContext_getThresholdInformation)**  
    Returns the threshold information associated with the notification.

### getReportInstance()

Returns the report instance associated with the notification.

#### Signature

public Reports.ReportInstance getReportInstance()

#### Return Value

Type: [Reports.ReportInstance](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_reportinstance.htm#apex_class_reports_reportinstance "Returns an instance of a report that was run asynchronously. Retrieves the results for that instance.")

### getThresholdInformation()

Returns the threshold information associated with the notification.

#### Signature

public Reports.ThresholdInformation getThresholdInformation()

#### Return Value

Type: [Reports.ThresholdInformation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ThresholdInformation.htm#apex_class_reports_ThresholdInformation "Contains a list of evaluated conditions for a report notification.")