//===== [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.checkpoint("MessageScript")
x_snd_eb.ws_console.execute("Mapping incident.number [x_snd_eb_field.do?sys_id=d4dba3aadb7dbc501831aab35b961994]", function () {
log.debug("Field map: PI - String [x_snd_eb_field_map.do?sys_id=da997f7a1b51b81090dfdb9ebd4bcb5e]");
var default_value = (function () {
// Determines whether this instance of the field map is for a mandatory field
var is_mandatory = false;
$stage.number = '' + (source.number || default_value);
} else if (source.number != '') {
$stage.number = '' + source.number;
var error = x_snd_eb.ws_console.findCheckpointError("MessageScript");
if (error) throw error.message;
//===== [ws] End Unifi Auto Generated Code =====//