CreateIncidentInboundReceipt Fields
We will utilise the Field & Field Map records to configure the Message Scripts for the CreateIncidentInboundReceipt Message.
Last updated
Was this helpful?
We will utilise the Field & Field Map records to configure the Message Scripts for the CreateIncidentInboundReceipt Message.
Last updated
Was this helpful?
Was this helpful?
//===== [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.
*/
x_snd_eb.ws_console.execute("Mapping incident.number [x_snd_eb_field.do?sys_id=c7a87254dbaa141041f945e81396195e]", function () {
log.debug("Field map: IS - String [x_snd_eb_field_map.do?sys_id=006de8cddbf5985094dbd7795e96191e]");
var default_value = (function () {
return '';
})();
// Determines whether this instance of the field map is for a mandatory field
var is_mandatory = false;
if (is_mandatory) {
$stage.number = '' + (source.number || default_value);
} else if (source.number != '') {
$stage.number = '' + source.number;
}
});
if (x_snd_eb.ws_console.has_error) {
var errors = x_snd_eb.ws_console.get({type: 'error'});
if (errors.length) {
throw errors[0];
}
}
//===== [ws] End Unifi Auto Generated Code =====////===== [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.
*/
x_snd_eb.ws_console.execute("Mapping incident.number [x_snd_eb_field.do?sys_id=c7a87254dbaa141041f945e81396195e]", function () {
log.debug("Field map: IS - String [x_snd_eb_field_map.do?sys_id=006de8cddbf5985094dbd7795e96191e]");
payload = payload || {};
var $payload = payload;
// Determines whether this instance of the field map is for a mandatory field
var is_mandatory = false;
if (is_mandatory) {
$payload.correlation_id = '' + $stage.number;
} else if ($stage.number) {
$payload.correlation_id = '' + $stage.number;
}
});
if (x_snd_eb.ws_console.has_error) {
var errors = x_snd_eb.ws_console.get({type: 'error'});
if (errors.length) {
throw errors[0];
}
}
//===== [ws] End Unifi Auto Generated Code =====//