> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# saveFilterView()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/commands/filters.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Creates the [ISaveFilterView](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isavefilterview/index.md) command.

**Signature:**

```typescript
export declare function saveFilterView(name: string, isDefault: boolean, correlationId?: string): ISaveFilterView;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| name | string | name of the filter view under which it will be listed in UI. |
| isDefault | boolean | determine if new filter view should be set as a default. |
| correlationId | string | _(Optional)_ specify correlation id. It will be included in all events that will be emitted during the command processing. |

**Returns:**

[ISaveFilterView](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isavefilterview/index.md)

save filter view command

## Remarks

Dispatching this command will result into snapshotting of the current dashboard filter context into a filter view that will be persisted. User can later apply it to the filter context to restore it to the saved state.
