How to change the file name made from the "export update set" ui action?

Jace Benson
Mega Sage

I know I've found this once before, but my search is not giving me the results I found before.  If anyone knows how to change the file name generated from the export update set ui action to be the name of the update set + .xml vs the oob sys_update_set_sysid.xml I'd love to try it out.

1 ACCEPTED SOLUTION

Hi Benson,

When you check UI action of Export Update Set you should find this export_update_set in script section.

there is a processor with this path. when you open that processor you can find this script include ExportWithRelatedLists and these functions addRelatedList() and exportRecords() you need to debug.

There is this function getFileName within which has below code

getFileName: function(){
return (this.parent_table + '_' + this.sys_id + '.xml');
},

just change this to below and check whether the file name comes as my_custom_sysId.xml.

If it is coming then this is the place and you can then modify it as per your convenience.

getFileName: function(){
return ('my_custom' + '_' + this.sys_id + '.xml');
},

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

8 REPLIES 8

did you achieve this ?

i tried with a name but not helped

any guidance can help me

thank you very much.

can i do the same from list view?

select update set and download