The CreatorCon Call for Content is officially open! Get started here.

Can a user add or group add be included in an update set?

paw2
Tera Expert

I have heard that certain things do not come over when using an update set, and user adds or group adds are one of those.   Can anyone confirm?  

1 ACCEPTED SOLUTION

Deepa Srivastav
Kilo Sage

Yes , i confirm that they are not captured..


Also,Schedule job ,record changes etc are not captured in update set .For checking which entries will be captured within an Update Set , follow bellow instructions..



1.Navigate to the sys_dictionary.


2.Personalize the list to include the Attributes column.


3.Filter on Attributes is update_synch=true.



the tables which have the update_synch=true attribute will be captured.



Below link will also help:-



Re: how to caputre record creation in update sets?




Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa


View solution in original post

7 REPLIES 7

paw2
Tera Expert

A lot of good answers!   And they are all right.     Thanks all !


Tyler_Herman
Tera Contributor

Hi All,

When searching for an easy answer on capturing groups in update sets, this was the first post that appeared in my search so I would like to add a helpful bit to it. I often have to create and capture assignment groups, their members and their associated roles in my DEV instance as part of other work and it's always been a bit painful to capture each of those pieces in my update set.

Here's a simple solution - Import the attached XML file to your UI Action table. It's a new UI Action titled "Add Group to Update Set" which will appear on your assignment group table. When you click it, it will add the group, the group members and group roles to your current update set all at once. No longer do you need to go to each record (or list of records) and export to XML or add to update set, now it happens all in one go with a single button.

Here's the script if you want to see it before importing:

//Commit any changes to the record
current.update();

//Push the group into the current update set
var um = new GlideUpdateManager2();
um.saveRecord(current);

//Push the group members into the current update set
var grmembers = new GlideRecord("sys_user_grmember");
grmembers.addQuery("group", current.getUniqueValue());
grmembers.query();
while (grmembers.next()) {
    um.saveRecord(grmembers);
}

//Push the group roles into the current update set
var grroles = new GlideRecord("sys_group_has_role");
grroles.addQuery("group", current.getUniqueValue());
grroles.query();
while (grroles.next()) {
    um.saveRecord(grroles);
}

//Query for the current update set to display info message
var setID = gs.getPreference('sys_update_set');
var us = new GlideRecord('sys_update_set');
us.get(setID);

//Display info message and reload the form
gs.addInfoMessage('Group, members and roles included in <a href="sys_update_set.do?sys_id=' + setID + '">' + us.name + '</a> update set.');
action.setRedirectURL(current);

Cheers y'all!

Mag_ Tomer Harp
Tera Expert

Hello, 

I deployed the attached XML in order to add the option for 'Add to update set' part of the 'Related links'