How to add into Update set deleted record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 12:53 AM
Hi all,
I know it's possible to force record to update set by the code below:
gr.insert();
var um = new GlideUpdateManager2();
um.saveRecord(gr);
However, how can I put into Update set the flag that the record is deleted?
gr.deleteRecord();
var um = new GlideUpdateManager2();
um.saveRecord(gr); // does not work, because gr is deleted....
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:33 AM
Hi Peter,
This is normally automatically captured within your active update set (sys_update_xml). You just need to assign that record to the desired update set.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:38 AM
One clarification though. Keep in mind here we're talking about definition/schema related changes. On the other hand, Data related changes are not stored within an update set, but can be moved as xmls through instances.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 06:42 AM
Hi Peter,
Update sets capture what? would help you understand what all things are captured in update set. In your case, yes it will get captured in the update all you need is to verify sys_update_xml table for confirmation.