Change name of the file in export set

ark6
Mega Guru

Hi,

I am using export set and want to change the name of the file to be exported to mid server before exporting.

My requirement is to attach the current date to the file name, but when I do an append timestamp it appends both date and time on the file name.

Is there a way we can control this behavior and try to attach the date instead of a whole timestamp?

Regards,

Ark

18 REPLIES 18

Hi Kabashi,



So are you actually able to change the file name and see the updated file name in the mid server location after export set is completed.?



Regards


Ankur


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

Yes I am


That's also a good idea.



However, I did this configuration in the mid server script include just before posting the file in the SFTP location.


Peter Halsema
Tera Contributor

@Ankur Bawiskar  or somebody else. I have issues with the exporting data with the option "append timestamp"

the thing is that the file is being created in the ecc_agent_attachment-table. however it is not being exported to the destination.

But when I leave this "append timestamp" unchecked, then the file is being exported to de destination. one possibility is maybe the length (team_data_trips_2023_1_20230816092327.csv) eventhough it is not that long.

perhaps the way descriped above could be a work-around, not tried yet though. but I prefer the normal expected way.