Bulk closure of hr cases which are created before December 1st 2023 through fix script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 10:31 PM
Bulk closure of hr cases which are created before December 1st 2023 through fix script.Need Help?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 10:36 PM
Hi there,
Need help with what exactly?
You created a script and it is not working? Or your script is failing from a certain part? Please share what steps you already took.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 10:40 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 10:45 PM
If it's just about your encodedquery, here is nice method how you can generate your encodedquery from a list, and use it in scripting:
- 2019-09-04 - Article - Utilizing the breadcrumb on lists to generate your query
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 10:46 PM
Just looking at your script, do be aware that the use of setWorkflow(false) can cause other issues. Are you aware of that? And how are you handling that?
For example, if there's a Flow or Workflow attached, that will still keep running. If there's a Task SLA attached, that will still keep running. Etcetera.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field