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

# drillToLegacyDashboard()

- 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/drill.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 [IDrillToLegacyDashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idrilltolegacydashboard/index.md) command. Dispatching this command will result into dispatching [IDashboardDrillToLegacyDashboardResolved](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboarddrilltolegacydashboardresolved/index.md) event.

Drill to legacy dashboard can be configured for Kpi widgets only.

**Signature:**

```typescript
export declare function drillToLegacyDashboard(drillDefinition: IDrillToLegacyDashboardModel, drillEvent: IDashboardDrillEvent, correlationId?: string): IDrillToLegacyDashboard;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| drillDefinition | [IDrillToLegacyDashboardModel](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.idrilltolegacydashboard/index.md) | drill definition with the target dashboard. |
| drillEvent | [IDashboardDrillEvent](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboarddrillevent/index.md) | original drill event, that triggered this particular drill interaction. |
| correlationId | string | _(Optional)_ specify correlation id. It will be included in all events that will be emitted during the command processing. |

**Returns:**

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

drill to legacy dashboard command
