> ## 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.

# Unfurling and linking flags in Microsoft Teams

<View title="Developer" />

<View title="Federal docs">
  <Danger>
    **Microsoft Teams flag links are not available in federal environments**

    To learn more, read <a href="/docs/home/infrastructure/federal">LaunchDarkly in federal environments</a>.
  </Danger>
</View>

<View title="EU docs">
  <Danger>
    **Microsoft Teams flag links are not available in LaunchDarkly's European Union (EU) instance**

    To learn more, read <a href="/docs/home/infrastructure/eu">LaunchDarkly in the European Union (EU)</a>.
  </Danger>
</View>

This topic explains how flag links work in Microsoft Teams. A flag link being shared in any conversation can be unfurled to display a preview of the flag. Flag links being shared in public channels will also be automatically registered within LaunchDarkly. The LaunchDarkly app can also be used to manually link conversations in public channels to a flag.

To use this feature, you must have installed and configured the LaunchDarkly Microsoft Teams app. To learn more, read [Setting up the Microsoft Teams app](/docs/integrations/microsoft-teams/setting-up).

## Unfurl flag and segment links

When a flag or segment link is pasted in a public channel, the LaunchDarkly app unfurls the link to display a preview of the resource:

<Frame caption="Unfurling a flag link in Microsoft Teams.">
  <img src="https://mintcdn.com/launchdarkly/ltwUrD5AmJ696YaX/images/__third_party/teams-ld-unfurl.png?fit=max&auto=format&n=ltwUrD5AmJ696YaX&q=85&s=a0f71d79600181dddbf5f7bce33c465d" alt="Unfurling a flag link in Microsoft Teams." width="1211" height="966" data-path="images/__third_party/teams-ld-unfurl.png" />
</Frame>

When a flag link is unfurled in Microsoft Teams, LaunchDarkly saves the message on the flag's **Links** tab. This helps track conversations about flags and provide up-to-date information on the flag's usage. To learn more, read [Flag links](/docs/home/flags/links).

## Manually link chat messages to a flag

Feature flags can be manually linked to a chat message in a public channel.

To manually link a chat message to a flag:

1. In Microsoft Teams, navigate to a public channel.

2. Click the **three-dot** expand icon next to a message and choose **More actions**.

3. Click **Create flag link**.

   <Frame caption="The flag link creation menu in Microsoft Teams.">
     <img src="https://mintcdn.com/launchdarkly/ltwUrD5AmJ696YaX/images/__third_party/teams-ld-creating-flag-link.png?fit=max&auto=format&n=ltwUrD5AmJ696YaX&q=85&s=fc2c6d8ccfb042385574d75515ded620" alt="The flag link creation menu in Microsoft Teams." width="838" height="956" data-path="images/__third_party/teams-ld-creating-flag-link.png" />
   </Frame>

4. A modal appears. Select a project by typing the project name into the "Project" field. Click **Select project**.

5. Select a flag by typing the flag name into the "Feature Flag" field.

6. Click **Create**.

   <Frame caption="The modal to link a chat message to a flag.">
     <img src="https://mintcdn.com/launchdarkly/ltwUrD5AmJ696YaX/images/__third_party/teams-ld-create-flag-link-modal.png?fit=max&auto=format&n=ltwUrD5AmJ696YaX&q=85&s=5fa918fb8d559a7f189f60d763bd1b83" alt="The modal to link a chat message to a flag." width="989" height="775" data-path="images/__third_party/teams-ld-create-flag-link-modal.png" />
   </Frame>
