> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Link applications to views

> This topic explains how to link an application to a view, review the flags the application evaluates, and automatically link evaluated flags to the view.

**Developer**

**Federal docs**

> [!CAUTION]
>
> **Linking applications to views is not available in federal environments**
>
> To learn more, read [LaunchDarkly in federal environments](https://launchdarkly.com/docs/home/infrastructure/federal).

**EU docs**

> [!NOTE]
>
> **Views are available to customers on select plans**
>
> Views are only available to customers on select plans. To learn more, [read about our pricing](https://launchdarkly.com/pricing/). To upgrade your plan, [contact Sales](https://launchdarkly.com/contact-sales/).

This topic explains how to link an [application](https://launchdarkly.com/docs/home/releases/applications.md) to a view, review the flags the application evaluates, and automatically link evaluated flags to the view.

## About linking applications to views

When you link an application to a view, LaunchDarkly compares the flags in the view with the flags that the application's SDK evaluates. You can use this comparison to find flags the application evaluates that are missing from the view, and flags in the view that the application has not evaluated recently.

This is most useful when the view filters an SDK key payload. An application that connects with a filtered SDK key receives only the resources in the views associated with that key. Linking the application to the view helps you confirm that the payload contains every flag the application needs. To learn more, read [Filtered SDK payloads](https://launchdarkly.com/docs/sdk/concepts/payload-filtering.md).

You can link one application to each view.

Linking or unlinking an application does not add or remove any flags from the view. Flags change only when you link or remove them, or when you turn on [automatic linking](#automatically-link-evaluated-flags).

## Prerequisites

To link an application to a view, you need:

* A role that allows the `updateView` action for the view. To add or remove flags, the role must also allow the `linkFlagToView` or `unlinkFlagFromView` action. To learn more, read [View actions](https://launchdarkly.com/docs/home/account/roles/role-actions.md#view-actions).
* An application in the same project that has evaluated flags. To learn more, read [Applications](https://launchdarkly.com/docs/home/releases/applications.md).

## Link an application to a view

To link an application to a view:

1. Click the **gear** icon in the left sidebar. The settings page opens.
2. Click **Views**. The views list appears.
3. Click the view you want to link an application to.
4. Click the **Settings** tab.
5. Click the **Select an application** menu in the "Application" section and choose an application.
6. Click **Save**. An "Application linked" message appears.

After you link an application, the views list and the view's header show which application the view is connected to.

### Remove an application from a view

To remove an application from a view:

1. Open the view's **Settings** tab.
2. Click the application menu in the "Application" section.
3. Select **Remove application**.
4. Click **Save**.

Flags that are already linked to the view stay linked.

## Review evaluated and unevaluated flags

After you link an application, the "Application" section shows two counts:

* Evaluated flags: The flags that the application evaluated in the last 30 days. If some of these flags are not in the view, the count shows how many are missing.
* Unevaluated flags: The flags in the view that the application has not evaluated in the last 30 days.

### Link missing flags

To link flags that the application evaluates but that are missing from the view:

1. Open the view's **Settings** tab.
2. Click **Evaluated flags** in the "Application" section. A panel opens with the flags missing from the view selected.
3. (Optional) Uncheck any flags that you do not want to link.
4. Click **Link flags**. The panel closes and the counts update.

If the view filters SDK key payloads, a dialog appears before LaunchDarkly links the flags. It lists the SDK keys that the change affects. Review the dialog and confirm to link the flags.

The **Flags** tab of the view also shows a warning when the application evaluates flags that are missing from the view. Click **Add missing flags** in the warning to open the panel.

### Remove unevaluated flags

To remove flags from the view that the application has not evaluated:

1. Open the view's **Settings** tab.
2. Click **Unevaluated flags** in the "Application" section. A panel opens.
3. Check the flags you want to remove.
4. Click **Remove from view**. A confirmation dialog appears.
5. Confirm the removal.

Removing a flag from the view does not delete the flag from the project. If the view filters SDK key payloads, the flag is no longer delivered to applications that use those SDK keys.

## Automatically link evaluated flags

You can have LaunchDarkly link flags to the view automatically as the application evaluates them. Automatic linking only adds flags. It never removes flags from the view.

To turn on automatic linking:

1. Open the view's **Settings** tab.
2. Turn on the **Auto-link evaluated flags** switch in the "Application" section.
3. Click **Save**. A "Review before updating" dialog appears and lists the SDK keys whose payloads change, with the number of flags each key gains.
4. Click **Update**. An "Automatic linking enabled" message appears.

To turn off automatic linking, turn off the **Auto-link evaluated flags** switch and click **Save**.

## Manage applications and views with the API

You can also manage views with the REST API. To learn more, read [Views](https://launchdarkly.com/docs/api/views).
