# Test UpdateIncident

## Update The Incident

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

*Your Incident record should look like this:*

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqk4zfAI3kyUJPWfqn%2FV2%20-%20TestUpdate%201.png?alt=media\&token=685381de-5cc1-4954-893b-07fb4714e2a0)

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

2\) Click **Post**.

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

![](https://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqkHT33lBsW7oEroDx%2FV2%20-%20TestUpdate%202.png?alt=media\&token=de3d7e05-de48-4671-abbb-fba9729a4d91)

## 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://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqkS6VcyyCREDE2-UK%2FV2%20-%20TestUpdate%203.png?alt=media\&token=8596eadd-e909-44ff-b0f4-c3b3238c38c9)

3\) History:

* < History updated on the Bond > *(Sending UpdateIncident...)*

4\) 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://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqkmVlV0CcoRWXchdc%2FV2%20-%20TestUpdate%204.png?alt=media\&token=77cd8194-69ec-4f22-be01-d51128879a11)

5\) 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)*

6\) 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)*

7\) 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://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqkyJ3ncPTIKsa_UPF%2FV2%20-%20TestUpdate%205.png?alt=media\&token=ec704f11-ec2f-4874-a32e-06d9ae99a221)

8\) Stage details:

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

9\) Mapped stage 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://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQql7kkWu8KCWrJn6G6%2FV2%20-%20TestUpdate%206.png?alt=media\&token=05c927aa-1df2-49e9-9511-39faf4f172bf)

10\) 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 >

11\) 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://796541950-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MQmgaddAbbZQNDQsJoT%2F-MQqlMWYJVKW7FBpFwg2%2FV2%20-%20TestUpdate%207.png?alt=media\&token=928e82b5-118d-4f75-be47-6792ef516648)

12\) 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?
