An object set filter variable is used to track the filter state of an object set, often output by widgets such as the Filter List, XY Chart, Vega Chart or Pivot Table widgets. Object set filters can then be applied to object set variables, or used to filter object sets in widget configurations.
Because an object set filter variable is often meant to capture the output of a widget's selections, it can be created as an empty variable and then used in widget configurations.
A default state for the filter can also be specified by selecting object types, property types, and values for those property types. The values can be specified inline, or as variables.
If you select multiple object types, it is recommended that you filter on properties that are shared by all object types. Failure to do so may result in unexpected behavior, especially if deploying the module from Marketplace.
You can also remove the specified object types once your properties are specified if you want to make your filter object type agnostic. Note that you cannot add additional property filters, or select variables for property values, unless at least a single object type is specified.
For some workflows, it may be helpful to extract specific filtered values from an object set filter to use them elsewhere in your module. Here are some sample use cases where this may be valuable:
Email Date
property on an Email
object, and you want to translate that filter to also work on the Call Date
property of a Phone Call
object.Create New Alert
Action.To accomplish this, you can specify a default filter variable state using variables for property values, and turn on Update used variables on filter value changes.
When the filter value is updated to a filter that matches the shape of the default filter, the value for each variable in the configured default will be updated to the extracted value from the filter.
Using the filter above, if I select a range of points-per-game in my filter list, the numeric inputs that are backed by these extraction variables will be updated.
Only the following value types can be extracted:
For extraction to occur, the filter value must match the shape of the default filter. Deeply nested filters, like those that can be output by the pivot table or certain chart selections, are not supported. Negated filter values must also be negated in the filter variable's default configuration in order to enable extraction.