Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Filter Class

Represents a WHERE clause in a SOSL or SOQL query.

Namespace

DataSource

Usage

Compound types require child filters. Specifically, the subfilters property can’t be null if the type property is NOT_, AND_, or OR_.

Filter Properties

The following are properties for Filter.

columnName

Name of the column that’s being evaluated in a simple comparative type of filter.

Signature

public String columnName {get; set;}

Property Value

Type: String

columnValue

Value that the filter compares records against in a simple comparative type of filter.

Signature

public Object columnValue {get; set;}

Property Value

Type: Object

subfilters

List of subfilters for compound filter types, such as NOT_, AND_, and OR_.

Signature

public List<DataSource.Filter> subfilters {get; set;}

Property Value

Type: List<DataSource.Filter>

tableName

Name of the table whose column is being evaluated in a simple comparative type of filter.

Signature

public String tableName {get; set;}

Property Value

Type: String

type

Type of filter operation that limits the returned data.

Signature

public DataSource.FilterType type {get; set;}

Property Value

Type: DataSource.FilterType