Exclude some records from a table being copied across during a clone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2025 01:56 PM
We are currently working on a project where we will be creating High Risk (Restricted) Security Incidents. We are not wanting these records to be cloned into any of our sub-instances. We know how to exclude a whole table from being cloned over. Our question is there a way to exclude only some of the data on a table from being cloned into the sub-instances,other than writing a script to delete the records from the table in the sub-instance after the clone is complete? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2025 06:02 PM - edited ‎01-16-2025 06:02 PM
I can't think of any other way to achieve your goal from what you describe. A Data Preserver will preserve what is on the target instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2025 06:33 PM
hi @bpolo
I hope you are well and good.
Here's how you can approach it, along with explanations and considerations:
1. Leverage Conditional Data Preservers:
Data Preservers: Normally used to ensure data is preserved during a clone. We'll use them in a reverse way to prevent certain data from being copied.
Conditions: This is the key. You'll define a condition that identifies the High Risk (Restricted) Security Incidents that should NOT be cloned.
Steps:
Identify the Condition: Determine how you identify your High Risk incidents. Do they have a specific value in a field (e.g., a "Risk Level" field set to "High," a custom "Restricted" checkbox checked, etc.)? This will form the basis of your condition.
4. Configure the Preserver Name: Give it a descriptive name, like "Exclude High Risk Incidents".
Table: Select incident (or whatever your incident table name is).
Condition: This is where you put your logic. Use the condition builder to define the criteria that identify your High Risk incidents
Navigate to Clone Definition: Go to System Clone > Clone Definition.
Edit the Definition: Open the clone definition you use for your regular cloning process.
Add Preserver: In the "Preserve data" section, add the data preserver you just created.
Save.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2025 08:39 AM
Hi Mack,
To be clear, the Exclusion data and Preserve data are being set up at the source instance level?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2025 09:03 PM
Great question! If you're looking to exclude only specific records from being cloned into sub-instances, rather than excluding the entire table, one approach is to use clone rules. Depending on the platform you're using, you can configure these rules to filter out certain data during the cloning process itself. For example, you might set conditions based on specific field values, like a status or a custom flag that marks the record as 'restricted.'
If clone rules aren't available or flexible enough for your needs, you might also consider leveraging data policies or scoped APIs to restrict what gets transferred. This way, you avoid the overhead of running post-clone scripts to delete the unwanted records.
Let me know if you'd like more details on setting up filters or conditions—happy to help!