---
schema_version: "1"
id: 7940c2a8fe9067ba6866e066ee04875e6fa08b6a01dd87167da0cf0bc4d50384
title: FeedLayoutFilter Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_FeedLayoutFilter.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 09e4b4463bb297fc9de13d8c1089b90a103c1e38326709b5d02183e389f3766c
description: Represents a feed filter option in the feed view of a feed-based page layout. A filter can have only standardFilter or feedItemType set. The name of a CustomFeedFilter component. Names are prefixed with the name of the parent object. For example, Case.MyCustomFeedFilter.The type of filter.The type of feed item to display.Makes a duplicate copy of the Metadata.FeedLayoutFilter.
---
# FeedLayoutFilter Class

Represents a feed filter option in the feed view of a feed-based page layout. A filter can have only standardFilter or feedItemType set.

## Namespace

[Metadata](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “FeedLayoutFilter” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[FeedLayoutFilter Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_properties)**
- **[FeedLayoutFilter Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_methods)**

## FeedLayoutFilter Properties

The following are properties for FeedLayoutFilter.

- **[feedFilterName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_feedFilterName)**  
    The name of a CustomFeedFilter component. Names are prefixed with the name of the parent object. For example, Case.MyCustomFeedFilter.
- **[feedFilterType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_feedFilterType)**  
    The type of filter.
- **[feedItemType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_feedItemType)**  
    The type of feed item to display.

### feedFilterName

The name of a CustomFeedFilter component. Names are prefixed with the name of the parent object. For example, Case.MyCustomFeedFilter.

#### Signature

public String feedFilterName {get; set;}

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

### feedFilterType

The type of filter.

#### Signature

public Metadata.FeedLayoutFilterType feedFilterType {get; set;}

#### Property Value

Type: [FeedLayoutFilterType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_FeedLayoutFilterType.htm#apex_enum_Metadata_FeedLayoutFilterType "The type of feed layout filter.")

### feedItemType

The type of feed item to display.

#### Signature

public Metadata.FeedItemTypeEnum feedItemType {get; set;}

#### Property Value

Type: [FeedItemTypeEnum Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_FeedItemTypeEnum.htm#apex_enum_Metadata_FeedItemTypeEnum "The type of feed item in a feed-based page layout.")

## FeedLayoutFilter Methods

The following are methods for FeedLayoutFilter.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_Metadata_FeedLayoutFilter_clone)**  
    Makes a duplicate copy of the Metadata.FeedLayoutFilter.

### clone()

Makes a duplicate copy of the Metadata.FeedLayoutFilter.

#### Signature

public Object clone()

#### Return Value

Type: Object