How to set the update set name as its own name when we export it to xml?

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi Community,

I have to export over 200 update sets but then have to give it name as their name declared in update set entries.

For example 

If I exported the below update set then the name appeared with sys_id. but instead of that, I want the file name as the actual update set name as 'Excel_Template_GK'.

 

Note: I'm doing this for a temporary purpose. 

 find_real_file.png

 

Thanks,

Gunjan Kiratkar


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
1 ACCEPTED SOLUTION

Paul38
Tera Guru

Hello,

 

This can be done by updating line 29 (function getFileName) in the Script Include ExportWithRelatedLists, that is where the XML file name is generated.

Since you have the sys_id of the update set (this.sys_id) you can easily get the name and generate your own file name.

 

Let me know if it works or if you have any other questions.

 

Kind regards,

Paul

View solution in original post

2 REPLIES 2

dmathur09
Kilo Sage
Kilo Sage

Hi Gunjan,

It would take the file name how it typically does for other tables as well. I would suggest once you download a update set, try to rename there itself in the folder. 

Regards,

Deepankar Mathur

Paul38
Tera Guru

Hello,

 

This can be done by updating line 29 (function getFileName) in the Script Include ExportWithRelatedLists, that is where the XML file name is generated.

Since you have the sys_id of the update set (this.sys_id) you can easily get the name and generate your own file name.

 

Let me know if it works or if you have any other questions.

 

Kind regards,

Paul