# Test AddAttachmentInbound

## Update from Remote Instance

In the **remote instance**, **select one** of the **bonded tickets**.

**Add** an **attachment** to the record .

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-Mgz9rXErx7JJ3UclAk_%2FIAPG%20-%20Test%20AddAttachmentInbound%201.png?alt=media\&token=26173796-7cc0-4268-a299-392ef3634d03)

## Poll for Updates

Back in the **originating instance**, navigate to & **open < Your Parent Poller >**. Click **Execute Now**.

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MgyhYCIATnTmOkqDjMI%2F-MgykcTc13xQ3SK9Dz4w%2FIAPG%20-%20Test%20UpdateIncidentInbound%203.png?alt=media\&token=8734cf8e-a4d2-4e59-818b-ea851c70a856)

**Open** the **corresponding Parent Poll Request** & **confirm** that the **Incident** was **found** and that **subsequent child Poll Requests** were also **triggered**:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-MgzCypdxN4mXbkqk72i%2FIAPG%20-%20Test%20AddAttachmentInbound%203.png?alt=media\&token=9e52cb59-781d-4072-a550-099c8ca2e82d)

Notice the Parent & Child Update Poll Requests and the Select & Get Attachment Poll Requests:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-MgzG0-jocpENJ7bHxzx%2FIAPG%20-%20Test%20AddAttachmentInbound%204.png?alt=media\&token=7e9555a7-c1a6-4f9a-830c-fb844f129b5c)

**Open** the **corresponding Child Poll Request** & **confirm** that the **Message name** was **UpdateIncidentInbound**.

{% hint style="info" %}
The UpdateIncidentInbound Message was fired because that was set as default in the Response script of our Single Incident Poll Processor if there is an update with no change in state.
{% endhint %}

**Open** the **corresponding Select Attachments Poll Request** & confirm that the **Attachment** was **found**. **Notice** the **attachment\_hwm**, **ext\_ref** & **int\_ref** passed in as **parameters**:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-MgzIk2QkUtSH90N8EUr%2FIAPG%20-%20Test%20AddAttachmentInbound%205.png?alt=media\&token=4ad8a7c8-244e-4298-a5fc-fda0a5b93a6a)

**Open** the **corresponding Get Attachment Poll Request** & confirm that the **Attachment** was **found**. **Notice** the **attachment**, **ext\_ref** & **int\_ref** passed in as **parameters**:

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-MgzKZ6cGGY-J5AwN-lL%2FIAPG%20-%20Test%20AddAttachmentInbound%206.png?alt=media\&token=78c59f2f-8651-4957-9700-5954f6864576)

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-Mgz8_PrSfhVGSs84Qd9%2F-MgzMKY_qKCioh4ps_Up%2FIAPG%20-%20Test%20AddAttachmentInbound%207.png?alt=media\&token=610e4be2-d04b-4360-8e3f-fd2b48dbbace)
{% 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-Mgz8_PrSfhVGSs84Qd9%2F-MgzNlz-TGWAybRyhqvO%2FIAPG%20-%20Test%20AddAttachmentInbound%208.png?alt=media\&token=599152b9-6368-4d77-bfa5-3784a67f1452)
{% endtab %}
{% endtabs %}

{% hint style="success" %}
We can see that an UpdateIncidentInbound message and an AddAttachmentInbound message have been received. Both are Complete & Accepted & display the relevant Incident & Bond numbers.
{% endhint %}

Confirm the Attachment has been added to the **bonded ticket** in the **originating instance**.

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mgz8_PrSfhVGSs84Qd9%2F-MgzPnMyIN3ZT4NYRdFi%2FIAPG%20-%20Test%20AddAttachmentInbound%209.png?alt=media\&token=b903a238-9db7-4b37-87aa-233d1cab2058)
