# Integrating Amplify with the ServiceNow Agent Workspace

Configure Amplify to pick device and user fields from the ServiceNow Agent Workspace interface.

{% hint style="info" %}
**Supported versions**: All versions from Quebec onwards until the latest.
{% endhint %}

1. Open the ticket in the ServiceNow Agent Workspace view.
   * Copy the entire URL of the page.

From the Amplify extension:

2. Right-click on the Amplify extension in the browser extension bar.
3. From the drop-down, click **Options** to open the **Nexthink Amplify configuration** page.
4. Select the **Local** tab under **Web application configuration**.
5. **Add web application** in Amplify and paste the copied URL in the **Web application URL** field.
6. **Select identifier** in Amplify to open the web application URL using the **Field selector** pop-up.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-bc62177992ece095986fdb399bbbb6d0fb910442%2Fimage-20240313-072040.png?alt=media" alt="image-20240313-072040.png" width="760"><figcaption></figcaption></figure>

7. Use the highlighter to choose the field of interest on the ServiceNow ticket **Details** page with the affected device or user fields. Once selected, the system loads the element into the **Field selector** pop-up.
8. Copy the content of the **Field editor** from the **Field selector** pop-up into your text editor of choice to partially edit the code:
   * Replace the text `div:nth-of-type(1)` highlighted in the image below with `div[class*='is-active']`

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-a42bcb3294abfa9ffa9ac6922d4888807b887190%2Famp-1681463906.png?alt=media" alt="Field selector pop up"><figcaption></figcaption></figure>

9. Paste the edited code into the **Field editor** on the **Field selector** pop-up window.
   * Enter the relevant regular expression in the **String selector** field to select the specific part of the string, if required.
10. Click the **Fill field value** button on the **Field selector** pop-up window, to check if you selected the correct field. The information appears in the **Selected field value**.
11. **Save** the **Selected field value** to return to the Amplify extension configuration page
12. **Save** on the **Web application configuration**.
13. Return to the ServiceNow page and refresh to confirm if the **Amplify** button is in the bottom-right corner of the screen.
