SetAbortAction is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:08 AM
Hi,
I've a issue in Before BR.
current.setAbortAction(true) is not working.
Suppose on incident i've created a befor br when incident state changes new to in progress then setabortaction will work. But when state changes new to inprogress it remains on the state of in progress and shows error of "invalid update" and on refreshing the page state auto changes to new.
I want setabort action doesn't change the state because when it reaches to the state then it trigger the Workflow and send approvals also impact the user experience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:18 AM
Hi,
Can you please paste your code?
Also can you check if it works with the following code? -
current.state = previous.state;
current.setAbortAction(true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:22 AM
sorry i can't share my code but this is not the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:32 AM
If abort action is the main operation of this BR, the recommended way to do it is by setting the 'Abort action' checkbox to true in the Actions tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:41 AM
So how will my script execute? 🙂