User record in update set

sunil29
Tera Contributor

Hello All,

I want to capture the user data into update.

As soon I add new record in sys_user table it has to be capture in update set.

I tried by adding update_sync attribute to sys_user table, it is not allowing me to add this attribute.

Can you please on this.

Thanks in advance.

6 REPLIES 6

Hello Sunil,

Before making any changes to User table configuration, I recommend you below product document.

https://docs.servicenow.com/bundle/helsinki-application-development/page/build/system-update-sets/co...

Do not add the update_synch attribute to a dictionary record. When improperly used, this attribute can cause major performance issues or cause the instance to become unavailable. Adding this attribute is not supported.

You can move data between instance using importing and exporting XML or you can use import Sets,

Please mark answer correct if you found it as helpful.

Thanks,

ABHISHEK

Thank you,
Abhishek Gardade

Deepak Rana
Mega Contributor

Write BR on the sys_user table (onInsert) and then write below code in the script section.

//Push the record into the current update set   

var um = new GlideUpdateManager2();
um.saveRecord(current);

Please mark helpful,correct answer,like

Please refer below screnshot.

find_real_file.png