> For the complete documentation index, see [llms.txt](https://docs.sharelogic.com/unifi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharelogic.com/unifi/2.2/integration-guides/incident-attachment-poller-guide/testing/test-createincidentinbound.md).

# Test CreateIncidentInbound

Follow these instructions to test the CreateIncidentInbound Message.

## Create Test Incident

In **your PDI**, navigate to **Incident > Create New**.

The Incident fields to configure are as follows:

|  #  | Field              | Description                                                   | Value                          |
| :-: | ------------------ | ------------------------------------------------------------- | ------------------------------ |
|  1  | Caller             | Person who reported or is affected by this incident.          | \<Your Caller>                 |
|  2  | Impact             | Measure of the business criticality of the affected service.  | \<Your Impact>                 |
|  3  | Urgency            | The extent to which resolution of an incident can bear delay. | \<Your Urgency>                |
|  4  | Assignment group\* | The group to which the ticket is assigned.                    | *<*&#x59;our Assignment group> |
|  5  | Short description  | A brief description of the incident.                          | \<Your Short description>      |
|  6  | Description        | Detailed explanation on the incident.                         | \<Your Description>            |

{% hint style="info" %}
*\*Assignment group: This should be the group you created in your PDI to enable Unifi to identify which newly created, non-bonded tickets to poll and whose sys id was stored in a connection variable and passed into the Setup Script of the Poll Processor.*
{% endhint %}

*Your Incident form should look like this:*

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWXLVA0EV-CK8EjTuf%2FTest%20CreateIncidentInbound%201.png?alt=media\&token=14df89f4-3bac-4a34-a9dc-74d366caa241)

{% hint style="success" %}
Note the values entered (including State), so that you can check them against the mapped fields on the corresponding record in the instance being integrated to.
{% endhint %}

You should now have a non-bonded ticket in the remote instance *(assigned to \<Your Assignment group>)*:

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWXjwGxJ4eq9bsmGKH%2FTest%20CreateIncidentInbound%202.png?alt=media\&token=fe889555-8849-4fb9-ae81-dc26f5170c06)

## Poll for Creates

In **Unifi Integration Designer**, click on the **'Pollers' icon**. Navigate to & **open** **< Your Create Poller >** *(created on the* [*'Poller' page of the Incident Create Poller Guide*](/unifi/2.2/integration-guides/incident-create-poller-guide/polling/poller.md#new-poller)*)*. & click **Execute Now**:

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWYQcQmTavZktBJBL4%2FTest%20CreateIncidentInbound%203.png?alt=media\&token=f390764a-a46e-4b78-98af-eddc93434f76)

In **native ServiceNow**, navigate to **\[ws] Unifi > Polling > Poll Requests**. Click to **Open** & view the generated **Poll Request**. Confirm that only the one Incident was found (this is exactly as we expect because we are only polling for Incidents assigned to a specific Assignment group):

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWYeo1TuD_p7ownMh8%2FTest%20CreateIncidentInbound%204.png?alt=media\&token=d9a7e40d-b45a-4dd2-9900-ffbda5ebfcd0)

View the Transactions that have been sent. This can be done either in Native ServiceNow, or in the Unifi Operations Portal.

{% tabs %}
{% tab title="Native ServiceNow" %}
Navigate to **\[ws] Unifi > Transport > Transactions**.

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWZD56n3042TjA0GV6%2FTest%20CreateIncidentInbound%205.png?alt=media\&token=06e3d6ac-d27d-460b-a7e1-53489c417ec2)
{% endtab %}

{% tab title="Unifi Operations Portal" %}
Navigate to **\[ws] Unifi > Unifi Operations Portal**.

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWZO-PqW8L0z-jPN6X%2FTest%20CreateIncidentInbound%206.png?alt=media\&token=51a1d246-f2f6-431f-a1b2-72832896363e)
{% endtab %}
{% endtabs %}

{% hint style="success" %}
We can see the CreateIncidentInbound message has been received. It is Complete & Accepted and displays the relevant Incident & Bond numbers.
{% endhint %}

Confirm the following:

The Transaction has created the **bonded ticket** in **this instance**.

*Your new Incident should look like this:*

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRWZnk1Pv-xuR3yKm0X%2FTest%20CreateIncidentInbound%207.png?alt=media\&token=d35a0c6a-2f6c-408f-838a-73d138651327)

{% hint style="info" %}
The calller\_id was populated with the default value `gs.getUserID()` because the table API was returning display\_value instead of value. If the Create Poller was active and running then the caller\_id would be the Integration User. Because the Create Poller was manually executed whilst inactive, then the value is the user who executed the poll.
{% endhint %}

The Transaction has updated the **bonded ticket** in the **remote instance (your PDI)** *(with the correlation id)*.

*Your originating Incident should look like this:*

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MRWWT2QYUAb5UXir4j7%2F-MRW_3KzZmwBj1KNKbpP%2FTest%20CreateIncidentInbound%208.png?alt=media\&token=bdc9974b-7953-4774-8d9c-1b80109ff230)

Next, we shall test the **UpdateIncidentInbound** Message.
