---
schema_version: "1"
id: 6707fa3416f344248b65e08db7618f96b71adcf5b96fd15c71dd2bbbcc85d5d5
title: ReportScopeValue Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_reports_ReportScopeValue.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ReportScopeValue.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 796742787a23cbd42dbdc8cf111e81c1118f622ee545f80502862a1ef4a07217
description: Contains information about a possible scope value. Scope values depend on the report type. For example, you can set the scope for opportunity reports to All opportunities, My team’s opportunities, or My opportunities.Returns a boolean value that indicates whether you can segment the report by this scope.Returns the display name of the scope of the report.Returns the scope value for the report.
---
# ReportScopeValue Class

Contains information about a possible scope value. Scope values depend on the report type. For example, you can set the scope for opportunity reports to All opportunities, My team’s opportunities, or My opportunities.

## 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.")

- **[ReportScopeValue Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ReportScopeValue.htm#apex_reports_ReportScopeValue_methods)**

## ReportScopeValue Methods

The following are methods for ReportScopeValue.

- **[getAllowsDivision()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ReportScopeValue.htm#apex_reports_ReportScopeValue_getAllowsDivision)**  
    Returns a boolean value that indicates whether you can segment the report by this scope.
- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ReportScopeValue.htm#apex_reports_ReportScopeValue_getLabel)**  
    Returns the display name of the scope of the report.
- **[getValue()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_ReportScopeValue.htm#apex_reports_ReportScopeValue_getValue)**  
    Returns the scope value for the report.

### getAllowsDivision()

Returns a boolean value that indicates whether you can segment the report by this scope.

#### Signature

public Boolean getAllowsDivision()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### getLabel()

Returns the display name of the scope of the report.

#### Signature

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getValue()

Returns the scope value for the report.

#### Signature

public String getValue()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")