Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Export Set and Export Set Target

Sagar Rd
Tera Contributor

HI All,

 

I am building an Export Set to pull some service now data and store in the Mid Server. I have 2 requirements and I need help in achieving those.

 

1. At the Export Set we have the check box to Append date and time, is there a way for use to only append date but not the time. 

2. At the Export Set Target, we select the midserver and the path where we want to files. Is there a way for us to pass the file path dynamically like test20260430 or test 1 and next test 2 something like that.

This way we can store all the Exports related to that 1 day in 1 folder.

 

Please let me know how we can achieve these.

 

Thank you

Mourya

1 REPLY 1

Tanushree Maiti
Kilo Patron

1. you must disable that checkbox and use a script to dynamically update the file name before the export runs

   Refer: https://www.servicenow.com/community/developer-forum/run-as-tz-not-working-in-scheduled-export-sets/...

 Or

you can disable the checkbox  and create a new date field with Calculated value.

Refer: https://www.servicenow.com/community/developer-forum/date-time-fields-display-as-date-only/td-p/2162...

 

Good article: Export Sets, the forgotten ones

2. You can run a powershell command for that.

Refer for the details: https://www.servicenow.com/community/developer-forum/export-set-how-to-put-target-path-outside-mid-s...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: