Export Update Sets Via Script

JDX7913
Tera Guru

I want to write a scheduled job where it would export all "in progress" update sets at a given date and time (i.e. export update sets every Monday morning etc.).

I know where the update set table is, but what is the actually code to export or download the update sets and save it onto a computer?

Thank you.

 

1 ACCEPTED SOLUTION

Priyanka Chandr
Mega Guru

Hi,

Please have a look 

https://community.servicenow.com/community?id=community_question&sys_id=3ae007a5db98dbc01dcaf3231f96...

 

Kindly mark it correct and helpful if it is applicable.

Thanks,

Priyanka

View solution in original post

4 REPLIES 4

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

You should look at Export to XML UI Action

var updateSetExport = new UpdateSetExport();
var sysid = updateSetExport.exportUpdateSet(current);

action.setRedirectURL("export_update_set.do?sysparm_sys_id=" + sysid + "&sysparm_delete_when_done=true");

 

This code can help you.


Thanks,
Ashutosh

Priyanka Chandr
Mega Guru

Hi,

Please have a look 

https://community.servicenow.com/community?id=community_question&sys_id=3ae007a5db98dbc01dcaf3231f96...

 

Kindly mark it correct and helpful if it is applicable.

Thanks,

Priyanka

This is exactly what I was looking for, thank you!

Welcome!!! its great pleasure that my answer helped you to solve issue.