Receipt Message

The Receipt Message is the asynchronous receipt that is sent after processing update type messages.

Again, after clicking the 'Messages' icon, you are directed to the following screen (note: the three previously configured messages are now visible in the list):

1) Click on the ellipsis to the right of the CreateIncidentReceipt Message & click Copy.

Rather than create the Receipt Message from scratch, it will be quicker to copy the CreateIncidentReceipt Message and make one minor change.

Copy Message Modal

The fields to edit for the Copy Message modal are as follows:

#

Field

Description

Value

2

Message name

The message name that is unique for this integration.

'Receipt'

Your Copy Message modal should look like this:

3) Click Copy.

You will be redirected to the Details page of the newly created Receipt Message.

Script Editor Fields

Navigate to Advanced > Script Editor, then View > Inbound.

Your Script Editor fields should initially look like this:

The Script Editor fields to be edited are as follows:

#

Field

Description

Value

4

Stage to Target (Inbound)

The script to run.

Delete the following code that sits outside of the End tag: bond.setOpen();

Scripts

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

//===== [ws] Begin Unifi Auto Generated Code =====//

/*
 * This code (between the Begin and End comments) is generated from the
 * Field and Field mapping records which are configured as part of the integration.
 *
 * All code either above or below the comments will be automatically maintained
 * through the build cycle.
 *
 * WARNING: Do not edit the Begin or End comments.
 */



if (x_snd_eb.ws_console.hasError()) {
  var errors = x_snd_eb.ws_console.get({type: 'error'});
  if (errors.length) {
    throw errors[0];
  }
}

//===== [ws] End Unifi Auto Generated Code =====//

Your Script Editor fields should now look like this:

5) Click Save.

6) Click Build Message.

You will see the 'Message build successful' Info Message.

7) Click the 'Messages' icon to move on & configure the UpdateIncident Message.

There is no further configuration required for the Receipt Message.

Last updated