Business Rule Set Incident Active False once State changes to Cancelled

SNOW46
Tera Contributor

Hi All,

We have one Before Insert Update Business Rule in place for when the Incident State changes to Cancelled, set Active to False. But it seems it is not working as expected. It still appears under my Active Incidents.

find_real_file.png

find_real_file.png

Can anyone let me know how to fix this?

 

Thanks

7 REPLIES 7

AbhishekGardade
Giga Sage

Hello SNOW,

1. Make your business rule BEFORE UPDATE :

2. Go to advanced and add below script:

current.active = false;

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

It seems to be set up as required. Only change I will suggest is to make the Business Rule run After rather than Before & see the result.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

For me if I have ever done after using the actions tab does not work.  I was guessing because an after does not automatically do the equivalent as current.update().

Community Alums
Not applicable

Hello there,

if you have a workflow or flow running on this table (incident) then you should first set the workflow/flow to inactive. Otherwise this happens in most of the cases.

Cheers,

Joro