---
schema_version: "1"
id: bc099a4fdba721bb2a8c2e1442a5d00330e4fbbf2110d9554eee3f12ed7074ca
title: ForecastingFilterCondition
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_forecastingfiltercondition.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_forecastingfiltercondition.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 471e7ea077be12aa85a68456a02bc130c42086a82bc4b85890da59f97a80d373
description: Represents the custom filter condition logic for including or excluding data from opportunity forecasts.
---
# ForecastingFilterCondition

Represents the custom filter condition logic for including or excluding data from opportunity forecasts.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/metadata.htm) metadata type and inherits its fullName field.

## File Suffix and Directory Location

ForecastingFilterCondition components have the suffix .ForecastingFilterCondition and are stored in the ForecastingFilterConditions folder.

## Version

ForecastingFilterCondition components are available in API version 55.0 and later.

## Special Access Rules

There are no additional access requirements that are specific to this type.

## Fields

| Field Name | Description |
| --- | --- |
| fieldName | 
Field Type

string

Description

Required. The name of the opportunity field to be filtered.



 |
| forecastingFilter | 

Field Type

string

Description

Required. The ID of the forecast filter.



 |
| forecastingSourceDefinition | 

Field Type

string

Description

The ID of the forecasting source definition.



 |
| masterLabel | 

Field Type

string

Description

Required. The label for this object, which displays in Setup. The label is in the default language locale for the organization. If there’s no default language locale, the label is in en\_US.



 |
| operation | 

Field Type

FilterOperation (enumeration of type string)

Description

Required. The operator in the filter condition. Possible values are:

- equals
- greaterOrEqual—greater than or equal to
- greaterThan
- lessOrEqual—less than or equal to
- lessThan
- notEqual—not equal to





 |
| sortOrder | 

Field Type

int

Description

Required. The index value for the condition. This value represents the condition in the FilterLogic field on the ForecastingFilter object. For example, 1.



 |
| value | 

Field Type

string

Description

The value of the filter condition. If multiple values are specified, they must be separated by a comma delimiter.

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png)

#### Note

If you have multiple currencies enabled, and add a custom filter on a currency field as part of your forecast type definition, the corporate currency at the time the filter was created is used. If you have a single currency enabled, the absolute value is used in your filter condition.















 |

## Declarative Metadata Sample Definition

The following is an example of a ForecastingFilterCondition component.

<?xml version="1.0" encoding="UTF-8"?>
<ForecastingFilterCondition xmlns="http://soap.sforce.com/2006/04/metadata">
    <colName\>mostlikely</colName\>
    <fieldName\>Amount</fieldName\>
    <forecastingFilter\>d</forecastingFilter\>
    <forecastingSourceDefinition\>d7</forecastingSourceDefinition\>
    <masterLabel\>FFC\_Opportunity</masterLabel\>
    <operation\>greaterThan</masterLabel\>
    <sortOrder\>1</masterLabel\>
    <value\>100000</value\>
</ForecastingFilterCondition\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>ForecastingFilterCondition</name\>
    </types\>
    <version\>55.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).

## Usage

A forecast type can contain up to three filter conditions.