Script for close a case

Alessia Russo
Tera Expert

Hi everybody! I want to add a script in my ui action button for close the case in a certain state. Which script should I use?

Thanks

1 ACCEPTED SOLUTION

Hi @Gunjan Kiratkar ! thanks! Also, if I want that a particular state act like the closed state I have to make some other script?

View solution in original post

6 REPLIES 6

Hi @Alessia Russo ,

 

OOB there is closed state already present. if you added your own state for the replacement of closed state then some functionality which are dependent on the that closed state of case will not be functional in future. So you will have to take of that as well.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

kamlesh kjmar
Mega Sage
Mega Sage

Hi @Alessia Russo ,

 

If the purpose of your UI action is only to close the Case, then in that case I would advice you put the condition in condition field only so that your UI action could appear on the form only when your case form is eligible to be closed. Below an example for reference:

 

kamleshkjmar_0-1674823039140.png

 

 

I hope this helps.

 

Regards,

Kamlesh