getFilterId()

Returns the ID of the filter that is currently in context.

The getFilterID() method doesn’t support list views without filter IDs, such as the Recently Viewed list view. In these cases, the method returns the first filter ID of the object’s available list views. If called within an <apex:enhancedList> component, the method returns the filter ID of the last used list view.

Note

Signature

public String getFilterId()

Return Value

Type: String