Deleting a Change Request

mah1
Kilo Sage

Xanadu Patch 7

What related records are deleted when a change request is deleted?  What controls this?

 

It seems that when a change request is deleted on our instance, change tasks are not deleted but are orphaned. This doesn't seem to be the case OOB; i.e., I confirmed that change tasks are not orphaned when a change request is deleted on my PDI. It appears to have been happening for quite a while since I see orphan change tasks as far back as 2017.  I compared the Delete UI Action on our instance to my PDI and they appear to be the same.

 

On the delete confirmation popup, change tasks are not listed under automatic deletion of related records. My guess is that it is something that was customized here but I am not sure where to look.  Any suggestions would be appreciated.

 

Thank you

 

 

1 ACCEPTED SOLUTION

Bert_c1
Kilo Patron

Check the 'Reference cascade rule' defined on the 'change_request' field on the 'change_task' record. It is set to "Delete" in my PDI. Meaning any change_task record that references a change_request that is deleted will also be deleted. It may be different on your affected instance.

 

View solution in original post

5 REPLIES 5

AmM01
Tera Contributor

I assume the customization might exist in the Delete UI action, a business rule or possibly a flow. 

The Delete UI action appears to be OOB. I did not see any business rules for change request involving delete but I will look again. I'm not aware of any flows set up for this but I will look again.

 

Thank you

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @mah1 

 

Try to repair the change plugin and then test.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Bert_c1
Kilo Patron

Check the 'Reference cascade rule' defined on the 'change_request' field on the 'change_task' record. It is set to "Delete" in my PDI. Meaning any change_task record that references a change_request that is deleted will also be deleted. It may be different on your affected instance.