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

# Using the ServiceNow approvals integration

> This topic explains how to use the ServiceNow approvals integration to request approvals for LaunchDarkly changes in ServiceNow.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

## Overview

This topic explains how to use the ServiceNow approvals integration to request approvals for LaunchDarkly changes in ServiceNow.

## Prerequisites

In order to complete this topic, you must meet the following prerequisites.

* You must have an existing ServiceNow account.
* You must have completed both parts of the setup for this integration. To learn more, read [Setting up the ServiceNow approvals integrations](/integrations/servicenow/setting-up).

## Request approval for changes in Service

NowTo request approval for changes in ServiceNow, you must request approval for the change in LaunchDarkly. The ServiceNow approvals integration supports approval requests for feature flag changes only.

To request approval in LaunchDarkly:

1. In LaunchDarkly, navigate to the feature flag that you wish to change and make your needed changes to the flag targeting, status, or variations.
2. Click **Review and save**. The "Save changes" dialog appears.
3. If the **Reviewer(s)** menu is not visible, select the **person** icon.
4. Choose one or more reviewers from the **Reviewer(s)** menu.
   * Members and teams with permission to approve or decline approval requests appear in the top section of the menu.
   * Members and teams that can only view approval requests appear in the bottom section of the menu. If you add a member or team from this list, they will be notified of the approval request, but cannot approve it.

<Frame caption="The &#x22;Save changes&#x22; dialog with the &#x22;Schedule changes&#x22; and &#x22;Add reviewers&#x22; icons called out.">
  ![The "Save changes" dialog with the "Schedule changes" and "Add reviewers" icons called out.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/4db3a63b0492629925a2a1063703f077e0d6960f4879f7a9b5c67ba43a0a16c5/assets/images/__LD_UI_no_test/save-changes-schedule-reviewers.png)
</Frame>

5. Enter a **Comment** to add details that help your reviewers understand the changes you made.
6. Click **Request approval**.
7. The approvers for feature flag changes receive a notification.

## View and approve approval requests in Service

NowThe approver for a flag change can view and, if using manual approvals, approve the request in ServiceNow. The ServiceNow approvals integration supports approval requests for feature flag changes only.

To view and approve the change request in ServiceNow:

1. In LaunchDarkly, click the "Pending changes" section in the right sidebar, or the **checkmark** pending changes icon. The "Pending changes" panel opens.

<Frame caption="The &#x22;Pending changes&#x22; section of a flag.">
  ![The "Pending changes" section of a flag.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/31059e21513186f311e41456eb55daefd78e9791f08e208300898f8544af2aa8/assets/images/auto/workflows-pending-changes-sidebar.auto.png)
</Frame>

2. Next to the request you want to view, click **View**. The "Review request" screen appears.
3. Click **Review in ServiceNow**. The change request screen in ServiceNow appears:

<Frame caption="A ServiceNow change request populated with LaunchDarkly approval request details.">
  ![A ServiceNow change request populated with LaunchDarkly approval request details.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/aa502d954659f114a517c8f27ea4077c443698e2db3222703f9a411118a0e704/assets/images/__third_party/servicenow-change-request.png)
</Frame>

4. View or approve the request in ServiceNow. When the ServiceNow approval conditions are met, ServiceNow changes the state to "Implement."
   * Alternatively, if ServiceNow changes the state to "Canceled," LaunchDarkly changes the approval request status to "Declined."
5. Apply the approved flag changes:
   * If your LaunchDarkly environment's approval settings specify to **Automatically apply flag changes in LaunchDarkly**, then no further action is required. The flag changes in LaunchDarkly are applied when the associated ServiceNow change request is approved.

* If your LaunchDarkly environment's approval settings do not specify to automatically apply flag changes, then you must apply the flag changes manually. You can do this within LaunchDarkly by clicking **Apply Changes** in the "Pending changes" panel. After the approved flag changes are applied, the ServiceNow change request state changes to "Review."If you delete the approval request in LaunchDarkly, the ServiceNow change request state changes to "Canceled."LaunchDarkly uses ServiceNow state values from the ServiceNow APIs to determine if a change has been approved or denied in ServiceNow. To learn more, search for "State model and transitions" in [ServiceNow's documentation](https://www.servicenow.com/docs/) and choose the article for your ServiceNow version. Here is a table explaining the standard ServiceNow states and the equivalent LaunchDarkly approval statuses:

\| ServiceNow state

| LaunchDarkly approval status |
| - |

\| --- |
\| New

\| Needs review |
\| Implement

\| Approved |
\| Review

\| Completed |
\| Canceled

\| Declined |

## Service

Now field mappingsHere is a table showing the fields LaunchDarkly specifies when it creates a ServiceNow approval request:

\| Approval request field in ServiceNow

| Description |
| - |

\| --- |
\| <code>short\_description</code>

\| A brief summary of what is being requested. This is automatically generated and includes the LaunchDarkly member name, flag name, and environment. The [image of the change request screen in ServiceNow](#view-and-approve-approval-requests-in-servicenow) , above, shows an example. |
\| <code>justification</code>

\| A more detailed summary of what is being requested. This includes a link back to the LaunchDarkly approval request, the member-provided comment, and an automated change description. The [image of the change request screen in ServiceNow](#view-and-approve-approval-requests-in-servicenow) , above, shows an example. |
\| <code>requested\_by</code>

\| The ServiceNow member ID associated with the LaunchDarkly member making the change. LaunchDarkly members are mapped to ServiceNow member IDs using email addresses. |
\| <code>start\_date</code>

\| The timestamp when the approval request was created in LaunchDarkly, or the scheduled date if the approval request is for a scheduled change. |
\| <code>end\_date</code>

\| The <code>start\_date</code> with a small offset. |
