Add state to closed states

Tim94
Giga Contributor

Hi,

 

I want to add the new state (invalid/Junk - Value = 😎 on the incident table to the closed states. If the state is choosen, the active flag should be false, if the state is changed again (e.g. to new) then the active flag should be true again.

 

Best regards, Tim

10 REPLIES 10

Hi Tim,



What you can do is, right click on the close_codes field and use Personalize Choices to add this new field. You can go to the dictionary entry for close_codes and change the value for this choice if you want. Once this is done, you can write a before update business rule with the below code:-



if(current.close_code.changesTo('<value of the new choice>')){


current.active=true;


}


if(current.close_code.changesFrom('<value of the new choice>')){


current.active=false;


}



Thanks & Regards,


Hari


Hi,



the close_code field is not part of this configuration.



Best regards, Tim


Tim, you can replace close_code in the above code with the column name of the choice list were you will be adding this new choice.



Thanks & Regards,


Hari


"Do you have any Idea what could block this behavior?"



Not off hand Tim, but I'll take a look at it myself as I've only researched this functionality.


gaia
Tera Contributor

you getthe solution for this problem ? I have the same problem with change !