# Integrating Amplify with the ServiceNow Operations Workspace

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

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

1. Open the ticket in the ServiceNow Operations 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="/files/F6LKOJsreFHePPAwRQnV" alt="image-20240313-072146.png" width="760"><figcaption></figcaption></figure>

7. Switch on the **Disable selector** toggle in the **Field selector** pop-up and navigate to the webpage of interest.
   * Open one of the tickets from the list.
   * When the ticket page loads, switch off the **Disable selector** toggle in the **Field selector** pop-up.

<figure><img src="/files/e7NBwTMV9I50Eqw9VloH" alt="Field selector toggle"><figcaption></figcaption></figure>

8. Use the highlighter to select the **Configuration item** on the ServiceNow **Details** page of the ticket.

<figure><img src="/files/k92XyfWgIjEfVzdkU4rI" alt="Selecting a configuration item"><figcaption></figcaption></figure>

9. Select the **Caller** from the **Record Information** section of the ticket. Once selected, the system loads the element into the **Field selector** pop-up.

<figure><img src="/files/TTZLOSbD8Fk3c7oAOMOL" alt="Selecting the name"><figcaption></figcaption></figure>

10. 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 `sn-canvas-screen:nth-of-type(*)` with `sn-canvas-screen:not([style='display: none;'])`.
    * If you see only `sn-canvas-screen` replace it with `sn-canvas-screen:not([style='display: none;'])`. See the image below.

<figure><img src="/files/ToaQqYxKZIDVijFInwe5" alt="Changing the code"><figcaption></figcaption></figure>

11. 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.
12. 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**.
13. **Save** the **Selected field value** to return to the Amplify extension configuration page
14. **Save** on the **Web application configuration**.
15. Return to the ServiceNow page and refresh to confirm if the **Amplify** button is in the bottom-right corner of the screen.


---

# 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://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration/integrating-amplify-with-web-applications/configuring-amplify-for-servicenow-operations-workspace.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.
