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

# Connect

> Connect with the Linked Account's ServiceNow account.

<Note>
  ServiceNow is a **Key** based integration and does not require the setup of an app.
</Note>

### Required Credentials of a Linked Account

To successfully connect with the **ServiceNow** integration, a Linked Account or an end-user will need to provide the following to connect:

1. Instance URL
2. Username
3. Password

<Info>
  To understand how a Linked Account can get the above mentioned credentials, refer below.
</Info>

### Getting Credentials of ServiceNow

To acquire the required credentials and connect a Linked Account, please follow the steps mentioned below:

<img height="200" src="https://mintcdn.com/cobalt-55/6ZvwOHqAhmVnIyqF/images/Servicenow/servicenow_config.png?fit=max&auto=format&n=6ZvwOHqAhmVnIyqF&q=85&s=6ced69e56ec64ef2d2181f7111a745ee" alt="Connect a Linked Account" data-path="images/Servicenow/servicenow_config.png" />

1. Log in to your [ServiceNow Developer account](https://developer.servicenow.com/).
2. Click on the **Profile** icon in the top right corner and select `Manage Instance Password`.

<img height="200" src="https://mintcdn.com/cobalt-55/6ZvwOHqAhmVnIyqF/images/Servicenow/servicenow_navigation.png?fit=max&auto=format&n=6ZvwOHqAhmVnIyqF&q=85&s=e4fe901db735ac5aa414917b1ba8c213" alt="Navigation in ServiceNow" data-path="images/Servicenow/servicenow_navigation.png" />

3. Copy the **Instance URL**, **Username** and **Password** displayed on the screen.

<img height="200" src="https://mintcdn.com/cobalt-55/6ZvwOHqAhmVnIyqF/images/Servicenow/servicenow_credentials.png?fit=max&auto=format&n=6ZvwOHqAhmVnIyqF&q=85&s=ef623bc347b164c4603259148356b698" alt="Getting Credentials" data-path="images/Servicenow/servicenow_credentials.png" />

### Activate Plugins in ServiceNow Instance

To use some of the APIs of ServiceNow, specific Plugins activation is required. For example, to use the **Case** and **Contact** API of ServiceNow, `Customer Service plugin (com.sn_customerservice)` needs to be activated.

To activate a plugin, follow these steps:

* Login into your **ServiceNow** instance.
* In the top nav bar, click on `All` and go to `Plugins` under `System Definition`.
* Under **Available for You** tab, search for the required plugin > Open it and click on `Install` button.

<img height="200" src="https://mintcdn.com/cobalt-55/6ZvwOHqAhmVnIyqF/images/Servicenow/servicenow_plugin.png?fit=max&auto=format&n=6ZvwOHqAhmVnIyqF&q=85&s=457fc6f7aa4edb31a8c497b3e0ccb077" alt="Activating Plugins in ServiceNow" data-path="images/Servicenow/servicenow_plugin.png" />

You have now successfully activated the Plugin.

#### Actions and triggers

In Refold, you can create orchestrations of your use-cases using ServiceNow actions and triggers. Following are the set of ServiceNow actions and triggers
supported by Refold.

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Attachment">
        1. **Get Attachment** - Get an attachment in ServiceNow.
        2. **Upload Attachment** - Upload an attachment in ServiceNow.
      </Accordion>

      <Accordion title="Case">
        3. **Create Case** - Create a new case in ServiceNow.
        4. **Get Case** - Get case by ID in ServiceNow.
        5. **Update Case** - Update a case in ServiceNow.
      </Accordion>

      <Accordion title="Contact">
        6. **Creat Contact** - Create contact by ID in ServiceNow.
        7. **Get Contact** - Get contact by ID in ServiceNow.
        8. **List Contacts** - List all contacts in ServiceNow.
      </Accordion>

      <Accordion title="Others">
        9. **HTTP Request** - Make HTTP API calls to any ServiceNow documented REST APIs.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Triggers">
    There are no triggers in this application.
  </Tab>
</Tabs>
