Error message quickly disappear
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Forum,
Can you please assist, I have created a BR to show an error message on particular conditions. The error message displays and quicly vanishes. See the configuration below:
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Kamva1 ,
Can you comment out the abort action line (Line 3) and verify if its causing this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Hemanth M,
When I comment line 3 the operation goes through, which is what I am trying to prevent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @Kamva1
Use below:
(function executeRule(current, previous /*null when async*/) {
gs.addErrorMessage('Cannot Resolve Case ' + current.number + ' while associated alert is still active!');
current.state = previous.state;
current.setAbortAction(true);
})(current, previous);
Validation Results:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago