ReportFilter Class

Contains information about a report filter, including column, operator, and value.

Reports

The following are constructors for ReportFilter.

Creates a new instance of the Reports.ReportFilter class. You can then set values by using the “set” methods.

public ReportFilter()

Creates a new instance of the Reports.ReportFilter class by using the specified parameters.

public ReportFilter(String column, String operator, String value)

Creates a new instance of the Reports.ReportFilter class by using the specified parameters.

public ReportFilterType(String column, String operator, String value, Reports.ReportFilterType filterType)

Creates a new instance of the Reports.ReportFilter class by using the specified parameters.

public ReportFilterType(String column, String operator, String value, Reports.ReportFilterType filterType, String entityName)

The following are methods for ReportFilter. All are instance methods.

  • getColumn()

    Returns the unique API name for the field that’s being filtered.

  • getEntityName()

    Returns the entity name used in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.

  • getFilterType()

    Returns the type of report filter.

  • getOperator()

    Returns the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.

  • getValue()

    Returns the value that the field is being filtered by. For example, the field Age can be filtered by a numeric value.

  • setColumn(column)

    Sets the unique API name for the field that’s being filtered.

  • setEntityName(entityName)

    Sets the entity name to use in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.

  • setFilterType()

    Sets the type of report filter.

  • setOperator(operator)

    Sets the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.

  • setValue(value)

    Sets the value by which a field can be filtered. For example, the field Age can be filtered by a numeric value.

  • toString(column)

    Returns a string representation of the filter.

Returns the unique API name for the field that’s being filtered.

public String getColumn()

Type: String

Returns the entity name used in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.

public String getEntityName()

Type: String

Returns the type of report filter.

public String getFilterType()

Type: ReportFilterType Enum

Returns the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.

public String getOperator()

Type: String

Returns the value that the field is being filtered by. For example, the field Age can be filtered by a numeric value.

public String getValue()

Type: String

Sets the unique API name for the field that’s being filtered.

public Void setColumn(String column)

Type: Void

Sets the entity name to use in the report filter. Use the entity name to handle ambiguous field names across entities, specifically when using cross filters.

public Void setEntityName(String entityName)

Type: Void

Sets the type of report filter.

public Void setFilterType(String column)

Type: Void

Sets the unique API name for the condition that is used to filter a field, such as “greater than” or “not equal to.” Filter conditions depend on the data type of the field.

public Void setOperator(String operator)

Type: Void

Sets the value by which a field can be filtered. For example, the field Age can be filtered by a numeric value.

public Void setValue(String value)

Type: Void

Returns a string representation of the filter.

public String toString()

Type: String