- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 06:54 AM
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.
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
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 07:18 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 06:47 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 07:18 AM
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