Exclude some filtered data during cloning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Khanna Ji
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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
Cheat Sheet: Mastering ServiceNow Cloning Configurations
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@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! */