Active the on Hold Incident If caller responses back on service portal in comment section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 11:20 AM - edited 08-08-2024 11:24 AM
Hello
I am working on one task to update the Incident to state Active if it is on Hold when caller responses back on service portal in comment section for same incident
for above requirement
I have created the before update business rule as below
When to Run Condition
Script to run
I have added the abort action condition to avoid the BR run when same incident is getting updated from Incident form it should run when Incident will get updated from portal
but above BR is not working kindly Assist on this
attaching the Portal view (FYI) comment section of Incident from where end user supposed to post the comments when it is on Hold & it should change the state to Active
Could you please assist on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 10:28 PM
small update; also are you sure the BR condition is getting satisfied and it's going inside the else condition?
(function executeRule(current, previous /*null when async*/) {
if (!gs.action.getGlideURI().toString().indexOf('sp') > -1) {
current.setAbortAction(true);
}
else{
current.incident_state = 2;
current.state= 2;
}
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader