# Test UpdateIncident

## Update The Incident

Navigate to **< Your Incident >** created in the previous test.

*Your Incident record should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MexulylZ7T19Ve-vcOG%2F-MexxNCuLy_0cSI5YdDv%2FOBIG%20-%20Test%20UpdateIncident%201.png?alt=media\&token=8dad00ea-12bb-4238-97f5-d47f7b03dbb6)

Enter **< Your Work notes >** in the **'Work notes' field**.

Click **Post**.

*The following activities are added to the 'Notes' tab (confirming sending the UpdateIncident Message to your integration):*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2NZXDx9u-cwmTEz_6%2FOBIG%20-%20Test%20UpdateIncident%202.png?alt=media\&token=ac77dd4c-94fe-4b7c-a57e-2820b68f5d8b)

## View the Bond

Click through to the **Bond** record from the related list on the Incident.

*Your Bond record should have been updated as follows:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2OjRFacoypbkuz31r%2FOBIG%20-%20Test%20UpdateIncident%203.png?alt=media\&token=de73cfc1-aa61-46f5-92d7-840e46df0c42)

Transaction:

* Message: 'Updateincident'
* Direction: 'Outbound'
* Transaction state: 'Complete' *(The data has been successfully transported)*
* Process state: 'Accepted' *(The transaction was accepted as within the scope of the business logic that's in place)*

## View the Transaction

Click through to the **Transaction** record from the related list on the Bond.

*Your Transaction record should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2Q0tN-oyxLiF0M5Pw%2FOBIG%20-%20Test%20UpdateIncident%204.png?alt=media\&token=3be31cf1-95ea-4088-993b-d780852bc9c0)

Transaction details:

* Table: 'Incident \[incident]'
* Document: < Your Incident >
* Integration: < Your Integration >
* Connection: < Your Connection >
* Bond: < Your Bond >
* Message: 'UpdateIncident'
* Direction: 'Outbound'
* Transaction state: 'Complete' *(The data has been successfully transported)*
* Process state: 'Accepted' *(The transaction was accepted as within the scope of the business logic that's in place)*

Errors:

* Error: *(If there was a transactional error the Transaction state would show as 'Error' and the details would be captured here).*
* Process error: *(If there was a process error the Process state would show as 'Rejected' and the details would be captured here)*

Stage:

* Direction: 'Outbound'
* Message: 'UpdateIncident'
* Internal reference: < ServiceNow ticket reference > *(Same as 'Document')*
* External reference: < External system's ticket reference >

## View the Stage

Click through to the **Stage** record from the related list on the Transaction.

Check the values in the fields match what you expect.

*Your Stage record should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2RVZYLwhBwUzM-4uD%2FOBIG%20-%20Test%20UpdateIncident%205.png?alt=media\&token=2e1cf3a8-f7b6-43ba-a300-a375ddd1a7b5)

Stage details:

* Direction: 'Outbound'
* External reference: < External system's ticket reference >
* Internal reference: < ServiceNow ticket reference >
* Snapshot: < Snapshot record reference >
* Message: 'UpdateIncident'
* Transaction: < Your Transaction >
* Integration: < Your Integration >

Mapped Staged Data fields:

* Work notes: < Your Work note >

## View the HTTP Request

Click through to the **HTTP Request** record from the related list on the Transaction.

*Your HTTP Request record should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2V1vnPK4ak24CKSiy%2FOBIG%20-%20Test%20UpdateIncident%206.png?alt=media\&token=f998c192-95b4-4588-924e-44827dbe8f08)

HTTP Request details:

* Integration: < Your Integration >
* Connection: < Your Connection >
* Transaction: < Your Transaction >
* Message: 'UpdateIncident'
* Direction: 'Outbound'
* Request state: 'OK' *(There are no errors with the HTTP Request.)*
* Attempt number: < Number of HTTP Request attempts > *(Failed requests are retried up to the maximum attempts number as configured on the Integration.)*
* Endpoint URL: < The external system’s access URL >
* Action Method: 'PUT'
* Request headers: < The header of the request being sent >
* Request payload: < The payload of the request being sent >

Response details:

* Status code: '200'
* Response headers: < The header of the response being received >
* Response payload: < The payload of the response being received >

## Compare with the External System's Incident

Navigate to the corresponding **Incident** in the **external system**.

Check the values in the fields match those you noted when you saved the Incident in the internal system.

*Your external system's Incident record should look like this (depending on the system you're integrating with, your record may look different; the important matter is that the values match):*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf1yDMcVXiEBIWNxYxn%2F-Mf2WyKJ4zdwz_Rq60eM%2FOBIG%20-%20Test%20UpdateIncident%207.png?alt=media\&token=0125b14b-0ae6-4855-ae85-61ff77e0d097)

Activities: < Your Work note > *(added by < your.external.system.user >)*

## Challenge

* *Repeat the steps above* - this time placing a check in the 'Additional comments (Customer visible)' checkbox.
* What do you expect to happen?
