---
schema_version: "1"
id: d85fec075a90a8a23ab99bd8f172f56caf0eebba4ad819f090e3f052806aef71
title: ForecastingFilter
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_forecastingfilter.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_forecastingfilter.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2a1b0ca5fa5d4767442e809663c54a380c4a762ea9b55516b0249452e11c4db0
description: Represents the custom filter for including or excluding data from opportunity forecasts.
---
# ForecastingFilter

Represents the custom filter 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

ForecastingFilter components have the suffix .forecastingFilter and are stored in the forecastingFilters folder.

## Version

ForecastingFilter 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 |
| --- | --- |
| filterLogic | 
Field Type

string

Description

The logic that controls the evaluation of conditions. Only AND is supported. For example, 1 AND 2 AND 3.



 |
| forecastingType | 

Field Type

string

Description

Required. The ID of the forecast type. Can be linked only to forecast types created in Summer ’21 and later.



 |
| forecastingTypeSource | 

Field Type

string

Description

Required. The ID of the forecast type source. Can be linked only to forecast type sources created in Summer ’21 or later and with a forecast source definition with source object of 'Opportunity.'



 |
| 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.



 |

## Declarative Metadata Sample Definition

The following is an example of a ForecastingFilter component.

<?xml version="1.0" encoding="UTF-8"?>
<ForecastingFilter xmlns="http://soap.sforce.com/2006/04/metadata">
    <filterLogic\>1 AND 2</filterLogic\>
    <forecastingType\>d</forecastingType\>
    <forecastingTypeSource\>d7</forecastingTypeSource\>
    <masterLabel\>FF\_OpportunityLineItem</masterLabel\>
</ForecastingFilter\>

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\>ForecastingFilter</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).