Type Alias: UnifiedFilterJson

UnifiedFilterJson: FilterCondition & object

Represents the filter format used to apply filters to components.

Type declaration 

dataSource? 

optional dataSource: string

The API name of the data source. Required when applying filters to dashboards with multiple data sources.

fieldName 

fieldName: string

Required. The name of the field to apply the filter on, specified as a combination of object name and api name of the field.

Example 

1const filter: UnifiedFilterJson = {
2  fieldName: "Account.Account_Name",
3  operator: FilterOperator.Equals,
4  values: ["Acme Corp"],
5  dataSource: "SalesData",
6};

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!