Capture Deleted record in update set

Sndeveloper Adm
Tera Guru

Hi, 

I would like to delete ONLY one record in DEV Which needs to be captured in update set. And eventually this record should be removed from QA and PROD as well. 

As deleted records are not captured in update sets, what is the best way to do this ?

 

 

TIA  

1 ACCEPTED SOLUTION

Sndeveloper Adm
Tera Guru

Hi, 

I have made a Fix script and resolved this issue.Now I am able to capture the delete record change Via update set  and run the Fix script.

 

@Arun_S1  @Amit Gujarathi Thanks for all the help and replies 🙂

 

View solution in original post

14 REPLIES 14

Arun_S1
Tera Guru
Tera Guru

@Sndeveloper Adm I was able to delete records using an update set, but I don't think this is an advised method. Also this was not possible for all the tables, I tried this for incident table it didn't work, but for CMDB CI table it works fine. Please see the steps I followed below.

 

1. Created a new update set "Delete_Record" and made that as my current update set.

Arun_S1_0-1686917631843.png

 

2. Navigated to CMDB CI table, selected a configuration item on the list view and from the actions selected "Create Application File"

Arun_S1_1-1686917827424.png

 

3. On selecting create application file, below dialog was shown, on which I selected OK

Arun_S1_2-1686917894004.png

 

4. On Selecting OK a new Metadata Snapshot Entry was created in my update set. (When exporting and importing this update set the instance updated the CI record)

Arun_S1_3-1686917984758.png

 

5. Now I opened the customer update record for Metadata Snapshot and modified the below action that is highlighted in Yellow.

Arun_S1_4-1686918120442.png

 

From: action="INSERT_OR_UPDATE"

To: action="DELETE"

 

6. Updated the customer update record and closed the update set, exported to XML.

7. Imported, previewed & committed in a different instance which deleted the record that was intended to be removed.

 

Please mark the appropriate response as correct answer and helpful

 

 

Sndeveloper Adm
Tera Guru

Hi, 

I have made a Fix script and resolved this issue.Now I am able to capture the delete record change Via update set  and run the Fix script.

 

@Arun_S1  @Amit Gujarathi Thanks for all the help and replies 🙂

 

Can you provide the Fix Script you used to solve this issue??  I have a similar issue I'm working through.

@Sndeveloper Adm if you were helped by someone's reply, you should Mark that as accepted solution, not just yours!

You should not waste someone's time like that and should show some courtesy to one who has helped you

Thanks for reminding me . I hit the helpful button now.I would like to close this tread on this note.