current.setAbortAction(true) causes the error message 'Invalid update'

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2013 08:26 AM
Guys,
I got stuck with current.setAbortAction(true) in a business rule... I have a simple business rule on an incident table:
When:
Before
Update:
yes
Condition:
current.category=='Software'&& !current.hasAttachments()
Script:
gs.addInfoMessage("No attached documents found! Operation cancelled.") current.setAbortAction(true);
But this rule causes and error message 'Invalid update' when I try to save an incident without attachments and with Category='Software'. My custom info message will be displayed as well, but why 'Invalid update' is there???
Labels:
- Labels:
-
Incident Management
16 REPLIES 16
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2020 05:48 AM
I think we can use current.setWorkflow(false) , instead of using current.setAbortAction(true);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2024 03:10 AM
This did the trick for me regarding the infamous "Invalid update"-message! 🙂