- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 05:58 AM
Hi Mark,
Below are my BR conditions.
InstanceA :
Insert and Update options checked + Priority is either 1 or 2 + assignment group is "xxxxxx"
The BR mentioned in the question is the once corresponding to this instance.
Instance B:
Update checked and there are not other conditions specified. Below is my BR in this instance.
(function executeRule(current, previous /*null when async*/) {
var r = new sn_ws.RESTMessageV2('MSP to ABC Rest', 'MSP to ABC');
r.setStringParameterNoEscape('Caller',current.caller_id);
r.setStringParameterNoEscape('ConfigurationItem',current.cmdb_ci);
r.setStringParameterNoEscape('Subcategory',current.subcategory);
r.setStringParameterNoEscape('Urgency',current.urgency);
r.setStringParameterNoEscape('Impact',current.impact);
r.setStringParameterNoEscape('Category',current.category);
r.setStringParameterNoEscape('State',current.state);
r.setStringParameterNoEscape('u_client_incident_number',current.u_client_incident_number);
r.setStringParameterNoEscape('Short Description',current.short_description);
r.setStringParameterNoEscape('u_client_incident_sysid',current.u_client_incident_sysid);
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
})(current, previous);