Comments on: Manually Add a Record to an Update Set https://servicenowguru.com/system-definition/manual-update-set-inclusion/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 20:30:46 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Daniel Oderbolz https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8492 Tue, 15 Nov 2022 12:18:09 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8492 Also have a look at the excellent “Add to Updateset Utility” by Ben Hollifield:

https://developer.servicenow.com/connect.do#!/share/contents/9824957_add_to_update_set_utility?v=7&t=PRODUCT_DETAILS

]]>
By: Brad https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8491 Wed, 19 Feb 2020 01:01:49 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8491 Thank you

]]>
By: Peter R. https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8488 Wed, 27 Sep 2017 07:18:15 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8488 How can I add to update set deleted record?

I want to store the “DELETE” flag, so the record on target instance will be deleted.

The code below is (of course) not working:

gr.deleteRecord();
var um = new GlideUpdateManager2();
um.saveRecord(gr); // does not work, because gr is deleted….

Any ideas please?

]]>
By: Zach Bloomquist https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8487 Thu, 20 Jul 2017 15:36:25 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8487 Thanks for this time-saver!

]]>
By: Marcelo Moreli https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8486 Wed, 03 May 2017 12:37:59 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8486 Hi Mark!
Any idea on how to create something similar in order to “Add to Team Development Local Changes” ?

I was thinking on adding it to sys_sync_changes manually, but I didn’t test it yet.

]]>
By: Terryio https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8485 Tue, 28 Mar 2017 09:36:41 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8485 Thanks Mark, it’s exactly that I looking for !

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8484 Mon, 31 Oct 2016 17:11:55 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8484 In reply to Trey Carroll.

Thanks Trey, it’s great to hear from you! I may be mistaken, but I don’t see that anywhere in my code above. I’m actually testing for the value of those attributes in my code above (which I think is correct and does what your code does). Have you tried the code above to see if that works better?

]]>
By: Trey Carroll https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8483 Mon, 31 Oct 2016 15:59:39 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8483 We tried to use this (awesome) UI Action today ( which we typically use for capturing updates to groups and roles ) to capture updates to a scheduled job, however it failed to capture the update with the message “~ updates are already being captured for this table”. Problem was traced to a bug in the code:

current.getED().hasAttribute(‘update_synch_custom’)

(sysauto_report has the attribute but it is false.)

After changing the line to:

/true/i.test(current.getED().getAttribute(‘update_synch’))

we were able to capture the update.

Thanks, Mark, for the awesome contribution!

]]>
By: Marcelo Moreli https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8482 Wed, 07 Oct 2015 13:43:35 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8482 Hi Mark,

You are right. I’m not sure what I did do before, but I cannot reproduce it! Probably it was my mistake,

Sorry for that

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/manual-update-set-inclusion/#comment-8481 Tue, 06 Oct 2015 21:55:48 +0000 https://servicenowguru.wpengine.com/?p=3588#comment-8481 In reply to Marcelo Moreli.

Marcelo,

I’m not sure what’s going on in your system, but I’ve been using this solution for several years now and have never had that problem reported, nor experienced it myself. I just tested again to be sure. You might add this code to a demo environment to confirm. If you can reproduce the error in a system I can get to I’d be happy to look further.

]]>