# Test Outbound Scenarios

We will create some bonded tickets in the remote instance - initially testing the outbound Message scenarios. Those bonded tickets will then also be available to test the inbound Message scenarios.

## Test CreateIncident

In **native ServiceNow**, 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  | Short description | A brief description of the incident.                 | \<Your Short description> |
|  3  | Description       | Detailed explanation on the incident.                | \<Your Description>       |

{% hint style="info" %}
Though the CreateIncident Message has been configured to map more than just the Short Description & Description fields, we have only filled these fields because that is all whe have included in the payload of our Poller.
{% endhint %}

*Your Incident form should look like this:*

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv20L32OxJKtj4WNkH%2FIAPG%20-%20Test%20Outbound%20Scenarios%201.png?alt=media\&token=6db40b98-8b92-4373-99f4-9022dc4d14cb)

4\) After you right-click & 'Save', note the Info Message confirming the CreateIncident Message is being sent to your Integration.

5\) Note the Bond is 'Open' and both the Internal & External reference are in place.

{% hint style="success" %}
Repeat as necessary so that there are three bonded tickets in the remote instance:
{% endhint %}

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv3b3dhGOBZDAsUAxh%2FIAPG%20-%20Test%20Outbound%20Scenarios%202.png?alt=media\&token=8cb93e7a-b5f8-4f48-848c-cfb55e9cbe0f)

## Test UpdateIncident

**Update one** of the **bonded tickets** in the **originating instance** to cause the UpdateIncident Message to fire:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv4UsIxMbo5kBLP2Wn%2FIAPG%20-%20Test%20Outbound%20Scenarios%203.png?alt=media\&token=77d931cc-bdbd-4c73-be51-e16b78003ce1)

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

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

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv5EILcwqkzdcUqLcI%2FIAPG%20-%20Test%20Outbound%20Scenarios%204.png?alt=media\&token=27d63f67-2ca0-4baa-a983-23525e6aa995)
{% endtab %}

{% tab title="Unifi Operations Manager" %}
Navigate to **Unifi > Unifi Operations Manager**.

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv6-xGHJO_cwPTXnhk%2FIAPG%20-%20Test%20Outbound%20Scenarios%205.png?alt=media\&token=a3ca49b4-b1a0-466d-b0fb-047d7fa691eb)
{% endtab %}
{% endtabs %}

{% hint style="success" %}
We can see that the three CreateIncident messages & one UpdateIncident message have been sent. All are Complete & Accepted & display the relevant Incident & Bond numbers.
{% endhint %}

Confirm the Transaction has updated the **bonded ticket** in the **remote instance**:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv7WfxkiNEnyaWOgGX%2FIAPG%20-%20Test%20Outbound%20Scenarios%206.png?alt=media\&token=2056de8f-40fc-45c0-b5b2-80a1e9c98434)

{% hint style="success" %}
We can see that the update has reached the bonded ticket (& that the correlation id matches the outbound Incident number)
{% endhint %}

## Test ResolveIncident

**Resolve** the **same bonded ticket** in the **originating instance** to cause the ResolveIncident Message to fire:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv9POwOJQFy4e4YcnY%2FIAPG%20-%20Test%20Outbound%20Scenarios%207.png?alt=media\&token=8cfff77d-d396-4af4-b272-0df88e6c2a68)

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

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

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-Mgv9xY4eGc15nog2WPf%2FIAPG%20-%20Test%20Outbound%20Scenarios%208.png?alt=media\&token=ece61c7a-d8ec-4eb7-bd60-bff72f06f6bc)
{% endtab %}

{% tab title="Unifi Operations Manager" %}
Navigate to **Unifi > Unifi Operations Manager**.

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-MgvAYiA7GEFYJfmaAYp%2FIAPG%20-%20Test%20Outbound%20Scenarios%209.png?alt=media\&token=a3ea2671-d547-4fc0-8db6-d866ef92df72)
{% endtab %}
{% endtabs %}

{% hint style="success" %}
We can see that the ResolveIncident messages has been sent. It is Complete & Accepted & displays the relevant Incident & Bond numbers.
{% endhint %}

Confirm the Transaction has updated the **bonded ticket** in the **remote instance**:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-MgvBka0kiv9lLJaQ0uY%2FIAPG%20-%20Test%20Outbound%20Scenarios%2010.png?alt=media\&token=5cd808b0-a796-4b8a-8700-a86c50a1fe24)

{% hint style="success" %}
We can see that the State, Resolution code & Resolution notes have been updated on the bonded ticket (& that the correlation id matches the outbound Incident number)
{% endhint %}

Navigate to the **Notes** tab to view the Activities stream:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MguzKt_1AuGVWath8U7%2F-MgvDBE2sdGtKWHkjdHB%2FIAPG%20-%20Test%20Outbound%20Scenarios%2011.png?alt=media\&token=b4366bd8-8014-4054-b11c-630b5a727d13)

{% hint style="success" %}
We can see that the update has also been logged in the Activities stream.
{% endhint %}

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