Exclude some filtered data during cloning

Khanna Ji
Tera Guru

I want to exclude some data from the Incident to be cloned into Dev and Test instance. How can I do that?

 

Do I need to have a clean-up script to delete the data?

10 REPLIES 10

M Iftikhar
Mega Sage

Hi @Khanna Ji ,

you can use Data preservers  for this purpose.

 

  • Data Preservers usually keep data during a clone, but you can flip the logic by setting a condition so that only those matching records are preserved in the source only → meaning they won’t be cloned to sub-instances.

  • Example: If you have a field Risk Level = High, you create a Data Preserver for the Incident table with the condition Risk Level is High.

  • During clone, those records won’t be copied over to Dev/Test.

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Khanna Ji 

 

DrAtulGLNG_0-1757941523486.png

 

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Khanna Ji 

you can exclude the incident table during clone so that it doesn't flow from source to target

good explanation here

Clone results based on Exclusion and Preserver configuration 

Clone Basics 

Cheat Sheet: Mastering ServiceNow Cloning Configurations 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur - not the complete table data has to be excluded. Only the onces with customField = True must be excluded in the clone. Rest all must be copied to the lower instances.

@Khanna Ji then maybe skip the whole table and export only particular records - via XML for example.

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */