Need to purge test data from service manager and portal
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭@Alan_Foster
You can run the attached in Powershell. By default, it will just close the Incidents and Service Requests. But there's a delete line you can uncomment to allow it to run. If you do decide to use it to delete the WIs, you should comment out the line that closes them.5
Answers
You can run the attached in Powershell. By default, it will just close the Incidents and Service Requests. But there's a delete line you can uncomment to allow it to run. If you do decide to use it to delete the WIs, you should comment out the line that closes them.
I also have a few test Problem Request that I need to remove from the DB. I tried duplicating the lines in the script except for PR but I am getting the result that $ProblemRequest Cannot bind argument to parameter 'Class' because it is null
All of the PR are already closed.
I've updated the code to include PRs.