Skip to main content
Omni emits app:filter-changed when an embedded app changes a filter on one of its queries after the app loads. An app changes filters through its own controls, which call omni.query(name).setFilter() and .removeFilter() in the app’s code. Use this to keep your own interface in sync with what someone has filtered to inside the app.
Embedded apps are in beta. Contact Omni support to enable them.

Payload

Properties

object
The complete set of filter overrides after the change, as an object of query name to field name to value. A query with no overrides is absent.
array
What differs from the previous state. One entry per changed field.

Example

Someone picks Returned in an app’s status control, and the app calls setFilter on its orders query:
Values are the raw filter values the app passes to setFilter — a scalar, an array, or a filter object — so treat them as opaque unless you know what the app sends. Refer to Consuming events for the full listener setup, including origin checks.