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

# drillToInsight()

- 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 [IDrillToInsight](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idrilltoinsight/index.md) command. Dispatching this command will result into applying the drill intersection filters to the target insight and dispatching [IDashboardDrillToInsightResolved](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboarddrilltoinsightresolved/index.md) event that will contain it.

In the default dashboard implementation this command will also result into opening the drill dialog with the target insight that has the drill intersection filters applied.

**Signature:**

```typescript
export declare function drillToInsight(drillDefinition: IDrillToInsightModel, drillEvent: IDashboardDrillEvent, correlationId?: string): IDrillToInsight;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| drillDefinition | [IDrillToInsightModel](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.idrilltoinsight/index.md) | drill definition with the target insight. |
| 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:**

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

drill to insight command
