# ServiceNow

## Step 1: Store Your ServiceNow Credentials in ARM

1. Log in to your ARM account.
2. Navigate to the **Admin** module and click the **Credentials** tab.<br>

   <figure><img src="/files/URdN2JSMMJLP1MlFv4Ii" alt=""><figcaption></figcaption></figure>
3. Click **Create Credential** from the right navigation.\ <br>

   <figure><img src="/files/Zzznzi66YFseHY9v9cTc" alt=""><figcaption></figcaption></figure>
4. In the popup:
   * Enter a **Credential Name**
   * Set **Credential Type** to *User name with Password*
   * Input your **ServiceNow username** and **password**
   * Ensure you're using your **username**, not your login email
5. Click **Save**\ <br>

   <figure><img src="/files/2Qka8wYuL0dfdrmroGdl" alt=""><figcaption></figcaption></figure>

***

## Step 2: Integrate ServiceNow with ARM

1. Log in to ARM (if not already logged in).
2. Go to **Admin > My Account**
3. Click **New ALM System** under the **ALM Management** section
4. Set **ALM Type** as **SERVICENOW**\
   \ <br>

   <figure><img src="/files/cEdqv0if4ivtn2bAEQiQ" alt=""><figcaption></figcaption></figure>
5. Enter:
   * A **Label Name**
   * Your ServiceNow **subdomain URL** (e.g., `https://[subdomain].service-now.com`)
   * The **credentials** stored in Step 1
6. Click **Test Connection** to validate
7. Click **Save** to complete the integration

> Once integrated, you can log bugs/issues to ServiceNow directly from ARM.

{% hint style="danger" %}
**Note:** ServiceNow OAuth integration is supported only for **Cloud versions**. Contact **<support@autorabit.com>** to enable this feature.
{% endhint %}

***

## Configuring ServiceNow Work Items in ARM

### EZ-Commit Integration

1. In the **EZ-Commit** screen under **Post Commit**:

   * Check **Update ALM Workitem Status**
   * Select:
     * **ALM Type:** SERVICENOW
     * **ALM Label, Project, Sprint,** and **Work Item**
     * **Status** to be updated

   ![EZ Commit Config](/files/xSYk61DGj0tU48SMzIKU)
2. Upon commit, work item status will be reflected in ServiceNow.

***

### CI Job Integration

#### Applicable to:

* Package from Version Control
* Deploy from Version Control
* Deploy from SFDX branch to Salesforce Org
* Install Unlocked Package from VCS

1. In **Build** section of CI Job creation:

   * Check **Map ALM Project (Ex: ServiceNow)**

   ![CI Job Build](/files/ahv8MI2jzpIIDS7cKLwN)
2. Go to **ALM** section:

   * Set:
     * **ALM Type:** SERVICENOW
     * **Label** and **Projects**

   ![ALM Projects](/files/XfYqd1UHTRi5vFIJmkNf)
3. Choose:

   * One or all **Active Sprints**

   ![Sprint Selection](/files/1MHukxjE4Wjiuzyh9JOs)
4. Select:

   * **Work Item Type** (or all)

   ![Work Item Type](/files/SEvi23Ak736j5gSf6ntb)
5. Update the **Status** for selected work item types

   ![Status Update](/files/Yf5sDVopaE4vtubbih0W)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/arm-1/integration-and-plugins/integrate-servicenow-with-arm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
