CreateIncidentResponse Message

The CreateIncidentResponse Message is the immediate, synchronous response that is sent after processing the Createincident Message.

New Message Modal

In Unifi Integration Designer, navigate to the 'Messages' icon. Click New.

The fields to be configured for the CreateIncidentResponse New Message modal are as follows:

#

Field

Description

Value

1

Message name

The message name that is unique for this integration.

'CreateIncidentResponse'

2

Type

The primary purpose of the message.

'Response'

3

Direction

The direction(s) this message is configured to support. (Choices: Inbound, Outbound, Bidirectional)

'Inbound'

Your CreateIncidentResponse New Message modal should look like this:

4) Click Submit and view to further configure the Message.

Script Editor Fields

The Scripts are where the request processing and data mapping occurs. They are also the place where Bond state & ownership are set.

5) Navigate to Advanced > Script Editor.

When you first open the Script Editor, you will see the following:

Having visibility of your message scripts in the one pane makes scripting so much more efficient.

Because we are dealing with an inbound message, we can adjust the view to only show the 'Payload to Stage' & 'Stage to Target' script fields.

6) Navigate to View > Inbound.

Your Script Editor fields will initially look like this:

Scripts

We will primarily by utilising OOTB Fields & Field Maps to configure our Message Scripts. In the current release, however, there is no OOTB Field Map record with which we can set the state on the Bond. We shall, therefore, script that manually. For more information , see the 'Fields' & 'Field Maps' pages in our technical documentation.

The Script Editor fields to be configured are as follows:

#

Field

Description

Value

7

Stage to Target (Inbound)

The script to run.

Replace the commented out instructions with the following code: bond.setOpen();

The code in the 'Stage to Target' script field should look like this:

bond.setOpen();

Setting the Bond state to Open allows messages to be sent/received. See the 'Bonds' page for details.

Your Script Editor fields should now look like this:

8) Click Save.

9) Click Close to navigate back to the Message.

We are now ready to configure the Fields for our CreateIncidentResponse Message.

Last updated