filmov
tv
JavaScript split function explained with best use case | Notification | Inbound Action | ServiceNow

Показать описание
How to use split function is explained in this video.
Capability of JavaScript split function explained using ServiceNow notification and inbound action.
We can use the JavaScript split function in inbound actions to extract the required information and update the target record based on that.
------------------------------------------------------------------------------
Script: split function to populate the fields values
-------------------------------------------------------------------------------
var subjectString = "Incident: ${number} has been moved to ${state}";
var field = fieldsArray[i].split("}");
field = field[0];
var fieldValue = getIncidentFieldValue(field);
}
function getIncidentFieldValue(field){
var grInc = new GlideRecord("incident");
}
}
Note:
Less than symbol is not allowed in the description, hence added != in the for loop in above code.
Watch also:
JavaScript array functions explained.
#servicenow #servicenowdeveloper #servicenowadmin #servicenowcommunity #servicenowconsulting
Capability of JavaScript split function explained using ServiceNow notification and inbound action.
We can use the JavaScript split function in inbound actions to extract the required information and update the target record based on that.
------------------------------------------------------------------------------
Script: split function to populate the fields values
-------------------------------------------------------------------------------
var subjectString = "Incident: ${number} has been moved to ${state}";
var field = fieldsArray[i].split("}");
field = field[0];
var fieldValue = getIncidentFieldValue(field);
}
function getIncidentFieldValue(field){
var grInc = new GlideRecord("incident");
}
}
Note:
Less than symbol is not allowed in the description, hence added != in the for loop in above code.
Watch also:
JavaScript array functions explained.
#servicenow #servicenowdeveloper #servicenowadmin #servicenowcommunity #servicenowconsulting