FeedLayout Class

Represents the values that define the feed view of a feed-based page layout. Feed-based layouts are available on Account, Case, Contact, Lead, Opportunity, custom, and external objects. They include a feed view and a detail view.

Metadata

Use this class when accessing Metadata.Layout metadata components. For more information, see “FeedLayout” in the Metadata API Developer Guide.

The following are properties for FeedLayout.

  • autocollapsePublisher

    Specifies whether the publisher is collapsed when the page loads (true) or not (false).

  • compactFeed

    Specifies whether the feed-based page layout uses a compact feed (true) or not (false). If set to true, feed items on the page are collapsed by default, and the feed view has an updated design.

  • feedFilterPosition

    Indicates where the feed filters list is included in the layout.

  • feedFilters

    The individual filters displayed in the feed filters list.

  • fullWidthFeed

    Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).

  • hideSidebar

    Specifies whether the sidebar is hidden (true) or not (false).

  • highlightExternalFeedItems

    Controls whether to highlight external feed items (true) or not (false).

  • leftComponents

    The individual components displayed in the left column of the feed view.

  • rightComponents

    Lists the individual components displayed in the right column of the feed view.

  • useInlineFiltersInConsole

    Indicates whether to use inline filters in the Salesforce console.

Specifies whether the publisher is collapsed when the page loads (true) or not (false).

public Boolean autocollapsePublisher {get; set;}

Type: Boolean

Specifies whether the feed-based page layout uses a compact feed (true) or not (false). If set to true, feed items on the page are collapsed by default, and the feed view has an updated design.

public Boolean compactFeed {get; set;}

Type: Boolean

Indicates where the feed filters list is included in the layout.

public Metadata.FeedLayoutFilterPosition feedFilterPosition {get; set;}

Type: FeedLayoutFilterPosition Enum

The individual filters displayed in the feed filters list.

public List<Metadata.FeedLayoutFilter> feedFilters {get; set;}

Type: List<FeedLayoutFilter Class>.

Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).

public Boolean fullWidthFeed {get; set;}

Type: Boolean

Specifies whether the sidebar is hidden (true) or not (false).

public Boolean hideSidebar {get; set;}

Type: Boolean

Controls whether to highlight external feed items (true) or not (false).

public Boolean highlightExternalFeedItems {get; set;}

Type: Boolean

The individual components displayed in the left column of the feed view.

public List<Metadata.FeedLayoutComponent> leftComponents {get; set;}

Type: List<FeedLayoutComponent Class>

Lists the individual components displayed in the right column of the feed view.

public List<Metadata.FeedLayoutComponent> rightComponents {get; set;}

Type: List<FeedLayoutComponent Class>

Indicates whether to use inline filters in the Salesforce console.

public Boolean useInlineFiltersInConsole {get; set;}

Type: Boolean

The following are methods for FeedLayout.

  • clone()

    Makes a duplicate copy of the Metadata.FeedLayout.

Makes a duplicate copy of the Metadata.FeedLayout.

public Object clone()

Type: Object