Add records to Specific Update Set NOT CURRENT UPDATE SET

Suresh1
Tera Guru

Hi,

 

Does anyone know how to push records to specific update set NOT current update set. 

I was thinking to use this class GlideUpdateManager2 , however I can't find any documentation or even if this can be accomplish with this class. 

 

Thanks,

Suresh

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Suresh1 

GlideUpdateManager2 will push it to your current update set.

Why not set that update set as current for you and run the script and it will capture that in the required update set?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

I have a requirement to dynamically select the update set via script and push the record into the update set.

Here i cannot make it as my current update set and also all this should be happening in a non-interactive session.

 

Let me know if there is any way to push records to an update set in a non-interactive session without making it current update set.

@Suresh1 

I tried to know which all methods are there in that GlideUpdateManager2 class, you can see if any of those functions work for you.

Unfortunately that API is at platform level and we won't know the functions within it and what they accept

 

        var updateManager = new GlideUpdateManager2();
        for (var i in updateManager)
            gs.info(i);

AnkurBawiskar_0-1741758045963.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Suresh1 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader