- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 02:34 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 08:17 AM
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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 02:44 AM
@Sndeveloper Adm Please tell us which record you like to delete, are you talking about the code or data? and what is the reason for deletion.
I generally don't recommend deletion due to various reasons. In case if the record that is deleted is being referenced in a different table that will be broken and might behave incorrectly. If possible set the active flag of the record to false.
ServiceNow does not allow you to capture data changes (add/update/deletion) through an update set, instead you have to delete it manually.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 03:08 AM
Thanks for replying,
Background is : we have record which is fetching from Third party data base. This record reference is deleted in that data base. so customer wanted to delete this in Service Now Database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 03:14 AM
@Sndeveloper Adm In that case you have navigate to the table list view, select and delete that record from the list view. This cant be captured as part of the update set.
If there are multiple records we can write a script for deletion but since this is a single record we can delete this from the list.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 03:16 AM
Yes I agree your point here.
Should we write a script to be captured in update set ? for one record which is deleted in DEV and to be captured in update set ?