Issue
Description
To preserve the Service Portal branding when cloning from prod to sub prod instance, identify the tables and records to preserve, then create a data preservers on the source instance.
Procedure
Identify the table and records in the instance that need to be preserved. In this example a customer wants to preserve the text warning "PLEASE NOTE THAT THIS IS NOT PRODUCTION" that is coming from the "HTML Template" field in the widget record. Because this widget does not exist in the source instance, the sp_instance table needs to be preserved as well.
If assistance is needed finding where a particular object is coming from, use the script below from the Chrome developer tools console, or create a task for CS-User Experience.
Example:
Steps to create data preservers:
- Login to the target instance
- From the filter navigator enter sp_widget.list
- Filter where Name = Not Production Warning
- Add the Body HTML template column to your filtered view then notice the entry: PLEASE NOTE THAT THIS IS NOT PRODUCTION
- Confirm that this entry is correct.
Now, preserve the table and records on the source instance so the target settings will not be overwritten by clones.
- Login to the source instance.
- From System Clone > Preserve Data and create a new clone preserver:
Name: Widget
Theme: Check
Table: Widget [sp_widget]
Where Display Name = Not Production Warning
Also create a data preserver for the sp_instance table if the widget does not exist in the source. The instance record is what ties the "Not Production Warning" widget to the actual container record that is on the Service Portal page.
- Login to the source instance.
- From System Clone > Preserve Data and create a new clone preserver:
Name: Instance
Theme: Check
Table: Widget [sp_instance]
Next, schedule a clone to test the data preserver.