Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Related list cascade delete of custom table

richardhofing
Mega Expert

When I delete a CI (using the Delete UI action on the form), it displays a warning dialog about related records that will also be deleted. This includes records in the related lists on the form (those that have a record). I have added a related list to the form, which is a custom table.  This custom table does not appear in the warning dialog and the records are not deleted.

I want to include the custom tables (related lists) in the delete action and warning dialog.  The Delete action uses the DeleteRecordAjax script include. I am not certain how to modify this to include the custom tables.

 

Ric

1 ACCEPTED SOLUTION

Hello Ric,

 

I believe it is on this reference field on the Contact form that you have to do the configuration described above.

 

Kind Regards,

Timmy

View solution in original post

4 REPLIES 4

timmyweytjens
Kilo Guru

Hi Timmy, no, unfortunately this does not help (but I did learn something new that will come in hand for the future).  I don't have a reference field on the CI form that applies.  The screen shot below provides some detail. On the CI (Server) form there is a related list (Contact). This is a custom table.

The suggestion you provided would work from the Contact form as there is a reference field to the CI, but there is no reference field on the CI form pointing to the Contact table.

 

Ric

 

find_real_file.png

 

Hello Ric,

 

I believe it is on this reference field on the Contact form that you have to do the configuration described above.

 

Kind Regards,

Timmy

Hi Timmy, I tried it and it works!  Awesome, thank you very much!

 

Ric