SetAbortAction is not working

nowitsvashu
Tera Guru

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.


7 REPLIES 7

Harish_K07
Giga Guru

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);

nowitsvashu
Tera Guru

sorry i can't share my code but this is not the solution

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.

 

HarishKothanda_0-1712313080685.png

 

So how will my script execute? 🙂