Newer Version Available
Compound Filters in the Apex Connector Framework
Filters can have child filters, which are stored in the subfilters property.
If a filter has children, the filter type must be one of the following.
| Filter Type | Description |
|---|---|
| AND_ | We return all rows that match all of the subfilters. |
| OR_ | We return all rows that match any of the subfilters. |
| NOT_ | The filter reverses how its child filter evaluates rows. Filters of this type can have only one subfilter. |
This code example illustrates how to deal with compound filters.