# Test ResolveIncident

## Resolve The Incident

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

Update the Incident record as follows:

<table><thead><tr><th width="183.95388935320244">Field</th><th width="280.02059574412226">Description</th><th width="225.47232659385526">Value</th></tr></thead><tbody><tr><td>State</td><td>The Incident lifecycle state.</td><td>'Resolved'</td></tr><tr><td>Resolution code</td><td>The Incident resolution code.</td><td>&#x3C;Your Resolution code></td></tr><tr><td>Resolution notes</td><td>The Incident resolution notes.</td><td>&#x3C;Your Resolution notes></td></tr></tbody></table>

*Your Incident record should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf2X3MxsMcVYat7v0CO%2F-Mf2_GlFQnOiDcaV5uiv%2FOBIG%20-%20Test%20ResolveIncident%201.png?alt=media\&token=61d7b2d0-3533-404f-b095-2d4a2d279af6)

Right-click & **Save**.

*You should see an Info Message, confirming the ResolveIncident Message is being sent to your Integration:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf2X3MxsMcVYat7v0CO%2F-Mf2c6qlDRR-CLQbVgCA%2FOBIG%20-%20Test%20ResolveIncident%202.png?alt=media\&token=52199f50-deb0-47d3-8ad8-b9c2898db32d)

*The Activities stream is updated with the details:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf2X3MxsMcVYat7v0CO%2F-Mf2c_gnPn0hEV74STJs%2FOBIG%20-%20Test%20ResolveIncident%203.png?alt=media\&token=96e1d4cd-c9df-461f-b5ee-430172fecbc4)

## 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-Mf2X3MxsMcVYat7v0CO%2F-Mf2dTr2oFB2DHp0bJa6%2FOBIG%20-%20Test%20ResolveIncident%204.png?alt=media\&token=85c8222b-074a-40e9-8c44-e24c8dd6d7bf)

Transaction:

* Message: 'Resolveincident'
* 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-Mf2X3MxsMcVYat7v0CO%2F-Mf2es_ML1X1Xi5F7eAx%2FOBIG%20-%20Test%20ResolveIncident%205.png?alt=media\&token=68eb2854-515b-4983-9b03-d57fc02dce5b)

Transaction details:

* Table: 'Incident \[incident]'
* Document: < Your Incident >
* Integration: < Your Integration >
* Connection: < Your Connection >
* Bond: < Your Bond >
* Message: 'ResolveIncident'
* 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: 'ResolveIncident'
* 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-Mf2X3MxsMcVYat7v0CO%2F-Mf2gMY0faPH5ZK-rZt9%2FOBIG%20-%20Test%20ResolveIncident%206.png?alt=media\&token=81b46f12-22b6-46a6-b3be-c28b2fcbf9d6)

Stage details:

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

Mapped Staged Data fields:

* close\_code: < Your Resolution code >
* close\_notes: < Your Resolution notes >
* state: '6'

## 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-Mf2iEU7Gh_yiOcODWyK%2F-Mf2jqm083EMKTB-ierW%2FOBIG%20-%20Test%20ResolveIncident%207.png?alt=media\&token=caefab66-37e3-42df-9993-fb13066111ee)

HTTP Request details:

* Integration: < Your Integration >
* Connection: < Your Connection >
* Transaction: < Your Transaction >
* Message: 'ResolveIncident'
* 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-Mf2jwu19idXij1hGpda%2F-Mf2vRXJZ2Z4olkWkcmD%2FOBIG%20-%20Test%20ResolveIncident%208.png?alt=media\&token=27e949a6-8d20-4dd4-a715-2831802e00ba)

State: 'Resolved'

Activities: < Your Resolution code/notes & State > *(added by < your.external.system.user >)*

Navigate to the **Resolution Information** tab.

*Your Resolution Information tab should look like this:*

![](https://605238050-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-Mf2jwu19idXij1hGpda%2F-Mf2wY8A84kJMNEZzCR8%2FOBIG%20-%20Test%20ResolveIncident%209.png?alt=media\&token=098ed1f2-6972-453e-9205-b62a9ed87255)

Resolution code: < Your Resolution code >

Resolution notes: < Your Resolution notes >

So far, when configuring our scenarios we have built the Message Scripts for each Message individually. Let's now see how we can run the **Build** process at the **Integration level**.
