- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 03:32 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 05:20 AM
Hi @Gunjan Kiratkar ! thanks! Also, if I want that a particular state act like the closed state I have to make some other script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 05:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 04:38 AM
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:
I hope this helps.
Regards,
Kamlesh